MCPcopy Create free account
hub / github.com/compozy/agh / GetAgentHeartbeat

Method GetAgentHeartbeat

internal/cli/client.go:3407–3418  ·  view source on GitHub ↗
(
	ctx context.Context,
	name string,
	query AgentQuery,
)

Source from the content-addressed store, hash-verified

3405}
3406
3407func (c *unixSocketClient) GetAgentHeartbeat(
3408 ctx context.Context,
3409 name string,
3410 query AgentQuery,
3411) (AgentHeartbeatRecord, error) {
3412 var response AgentHeartbeatRecord
3413 path := "/api/agents/" + url.PathEscape(strings.TrimSpace(name)) + "/heartbeat"
3414 if err := c.doJSON(ctx, http.MethodGet, path, agentValues(query), nil, &response); err != nil {
3415 return AgentHeartbeatRecord{}, err
3416 }
3417 return response, nil
3418}
3419
3420func (c *unixSocketClient) ValidateAgentHeartbeat(
3421 ctx context.Context,

Callers

nothing calls this directly

Calls 2

doJSONMethod · 0.95
agentValuesFunction · 0.85

Tested by

no test coverage detected