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

Method GetUserLatencyInsights

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

GetUserLatencyInsights returns the median and 95th percentile connection latency that users have experienced. The result can be filtered on template_ids, meaning only user data from workspaces based on those templates will be included.

(ctx context.Context, arg GetUserLatencyInsightsParams)

Source from the content-addressed store, hash-verified

792 // template_ids, meaning only user data from workspaces based on those templates
793 // will be included.
794 GetUserLatencyInsights(ctx context.Context, arg GetUserLatencyInsightsParams) ([]GetUserLatencyInsightsRow, error)
795 GetUserLinkByLinkedID(ctx context.Context, linkedID string) (UserLink, error)
796 GetUserLinkByUserIDLoginType(ctx context.Context, arg GetUserLinkByUserIDLoginTypeParams) (UserLink, error)
797 GetUserLinksByUserID(ctx context.Context, userID uuid.UUID) ([]UserLink, error)

Callers 4

insightsUserLatencyMethod · 0.65
TestTemplateMethod · 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 1

TestTemplateMethod · 0.52