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

Method ListLogs

internal/cli/client.go:3741–3756  ·  view source on GitHub ↗
(ctx context.Context, query LogsListQuery)

Source from the content-addressed store, hash-verified

3739}
3740
3741func (c *unixSocketClient) ListLogs(ctx context.Context, query LogsListQuery) ([]LogEventRecord, error) {
3742 var response struct {
3743 Events []LogEventRecord `json:"events"`
3744 }
3745 if err := c.doJSON(
3746 ctx,
3747 http.MethodGet,
3748 "/api/logs",
3749 logsListValues(query),
3750 nil,
3751 &response,
3752 ); err != nil {
3753 return nil, err
3754 }
3755 return response.Events, nil
3756}
3757
3758func (c *unixSocketClient) StreamLogs(
3759 ctx context.Context,

Callers 1

Calls 2

doJSONMethod · 0.95
logsListValuesFunction · 0.85

Tested by 1