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

Method UpsertTelemetryItem

coderd/database/querier.go:1423–1423  ·  view source on GitHub ↗
(ctx context.Context, arg UpsertTelemetryItemParams)

Source from the content-addressed store, hash-verified

1421 UpsertTaskSnapshot(ctx context.Context, arg UpsertTaskSnapshotParams) error
1422 UpsertTaskWorkspaceApp(ctx context.Context, arg UpsertTaskWorkspaceAppParams) (TaskWorkspaceApp, error)
1423 UpsertTelemetryItem(ctx context.Context, arg UpsertTelemetryItemParams) error
1424 // This query aggregates the workspace_agent_stats and workspace_app_stats data
1425 // into a single table for efficient storage and querying. Half-hour buckets are
1426 // used to store the data, and the minutes are summed for each user and template

Callers 7

TestTelemetryItemFunction · 0.65
RecordTelemetryStatusFunction · 0.65
UpsertTelemetryItemMethod · 0.65
UpsertTelemetryItemMethod · 0.65
TestSystemFunctionsMethod · 0.65
TelemetryItemFunction · 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

TestTelemetryItemFunction · 0.52
TestSystemFunctionsMethod · 0.52