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

Method InsertUsageEvent

coderd/database/querier.go:1000–1000  ·  view source on GitHub ↗

Duplicate events are ignored intentionally to allow for multiple replicas to publish heartbeat events.

(ctx context.Context, arg InsertUsageEventParams)

Source from the content-addressed store, hash-verified

998 // Duplicate events are ignored intentionally to allow for multiple replicas to
999 // publish heartbeat events.
1000 InsertUsageEvent(ctx context.Context, arg InsertUsageEventParams) error
1001 InsertUser(ctx context.Context, arg InsertUserParams) (User, error)
1002 // InsertUserGroupsByID adds a user to all provided groups, if they exist.
1003 // If there is a conflict, the user is already a member

Callers 9

TestUsageEventsTriggerFunction · 0.65
InsertUsageEventMethod · 0.65
InsertUsageEventMethod · 0.65
TestUsageEventsMethod · 0.65
TestInserterFunction · 0.65
TestCronFunction · 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 5

TestUsageEventsTriggerFunction · 0.52
TestUsageEventsMethod · 0.52
TestInserterFunction · 0.52
TestCronFunction · 0.52