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

Method GetSessionHealth

internal/cli/client.go:2792–2804  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

2790}
2791
2792func (c *unixSocketClient) GetSessionHealth(ctx context.Context, id string) (SessionHealthRecord, error) {
2793 var response struct {
2794 Health SessionHealthRecord `json:"health"`
2795 }
2796 path, err := c.sessionScopedPath(ctx, id, "/health")
2797 if err != nil {
2798 return SessionHealthRecord{}, err
2799 }
2800 if err := c.doJSON(ctx, http.MethodGet, path, nil, nil, &response); err != nil {
2801 return SessionHealthRecord{}, err
2802 }
2803 return response.Health, nil
2804}
2805
2806func (c *unixSocketClient) GetSessionStatus(ctx context.Context, id string) (SessionStatusRecord, error) {
2807 var response SessionStatusRecord

Callers

nothing calls this directly

Calls 2

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95

Tested by

no test coverage detected