feat(agent): schedule inventory reporting (30s metrics, 15m static)
Server Deploy / deploy (push) Successful in 1m15s

This commit is contained in:
2026-07-21 14:07:09 +01:00
parent 850ffbafe1
commit 1850f352a2
2 changed files with 45 additions and 0 deletions
+7
View File
@@ -126,6 +126,13 @@ func (c *Client) ReportUpdates(serverID, agentToken string, updates []pb.Package
return err
}
func (c *Client) ReportInventory(report *pb.InventoryReport) error {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
_, err := c.client.ReportInventory(ctx, report)
return err
}
// CommandStream opens a long-lived bidirectional stream for server-pushed commands.
// The caller controls the stream lifetime via ctx.
func (c *Client) CommandStream(ctx context.Context) (pb.Vantage_CommandStreamClient, error) {