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

Method GetActiveUserCount

coderd/database/dbmetrics/querymetrics.go:1189–1195  ·  view source on GitHub ↗
(ctx context.Context, includeSystem bool)

Source from the content-addressed store, hash-verified

1187}
1188
1189func (m queryMetricsStore) GetActiveUserCount(ctx context.Context, includeSystem bool) (int64, error) {
1190 start := time.Now()
1191 r0, r1 := m.s.GetActiveUserCount(ctx, includeSystem)
1192 m.queryLatencies.WithLabelValues("GetActiveUserCount").Observe(time.Since(start).Seconds())
1193 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetActiveUserCount").Inc()
1194 return r0, r1
1195}
1196
1197func (m queryMetricsStore) GetActiveWorkspaceBuildsByTemplateID(ctx context.Context, templateID uuid.UUID) ([]database.WorkspaceBuild, error) {
1198 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetActiveUserCountMethod · 0.65

Tested by

no test coverage detected