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

Method GetAgentHeartbeatStatus

internal/cli/client.go:3485–3496  ·  view source on GitHub ↗
(
	ctx context.Context,
	name string,
	request AgentHeartbeatStatusRequest,
)

Source from the content-addressed store, hash-verified

3483}
3484
3485func (c *unixSocketClient) GetAgentHeartbeatStatus(
3486 ctx context.Context,
3487 name string,
3488 request AgentHeartbeatStatusRequest,
3489) (AgentHeartbeatStatusRecord, error) {
3490 var response AgentHeartbeatStatusRecord
3491 path := "/api/agents/" + url.PathEscape(strings.TrimSpace(name)) + "/heartbeat/status"
3492 if err := c.doJSON(ctx, http.MethodGet, path, agentHeartbeatStatusValues(request), nil, &response); err != nil {
3493 return AgentHeartbeatStatusRecord{}, err
3494 }
3495 return response, nil
3496}
3497
3498func (c *unixSocketClient) WakeAgentHeartbeat(
3499 ctx context.Context,

Callers

nothing calls this directly

Calls 2

doJSONMethod · 0.95

Tested by

no test coverage detected