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

Method CustomRoles

coderd/database/dbmetrics/querymetrics.go:389–395  ·  view source on GitHub ↗
(ctx context.Context, arg database.CustomRolesParams)

Source from the content-addressed store, hash-verified

387}
388
389func (m queryMetricsStore) CustomRoles(ctx context.Context, arg database.CustomRolesParams) ([]database.CustomRole, error) {
390 start := time.Now()
391 r0, r1 := m.s.CustomRoles(ctx, arg)
392 m.queryLatencies.WithLabelValues("CustomRoles").Observe(time.Since(start).Seconds())
393 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "CustomRoles").Inc()
394 return r0, r1
395}
396
397func (m queryMetricsStore) DeleteAIProviderByID(ctx context.Context, id uuid.UUID) error {
398 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
CustomRolesMethod · 0.65

Tested by

no test coverage detected