MCPcopy Index your code
hub / github.com/coder/coder / GetWorkspaceAgentStats

Method GetWorkspaceAgentStats

coderd/database/querier.go:855–855  ·  view source on GitHub ↗
(ctx context.Context, createdAt time.Time)

Source from the content-addressed store, hash-verified

853 GetWorkspaceAgentScriptTimingsByBuildID(ctx context.Context, id uuid.UUID) ([]GetWorkspaceAgentScriptTimingsByBuildIDRow, error)
854 GetWorkspaceAgentScriptsByAgentIDs(ctx context.Context, ids []uuid.UUID) ([]GetWorkspaceAgentScriptsByAgentIDsRow, error)
855 GetWorkspaceAgentStats(ctx context.Context, createdAt time.Time) ([]GetWorkspaceAgentStatsRow, error)
856 GetWorkspaceAgentStatsAndLabels(ctx context.Context, createdAt time.Time) ([]GetWorkspaceAgentStatsAndLabelsRow, error)
857 // `minute_buckets` could return 0 rows if there are no usage stats since `created_at`.
858 GetWorkspaceAgentUsageStats(ctx context.Context, createdAt time.Time) ([]GetWorkspaceAgentUsageStatsRow, error)

Callers 6

createSnapshotMethod · 0.65
TestSystemFunctionsMethod · 0.65
TestBatchStatsFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 3

TestSystemFunctionsMethod · 0.52
TestBatchStatsFunction · 0.52