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

Method DeleteCustomRole

coderd/database/dbmetrics/querymetrics.go:533–539  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteCustomRoleParams)

Source from the content-addressed store, hash-verified

531}
532
533func (m queryMetricsStore) DeleteCustomRole(ctx context.Context, arg database.DeleteCustomRoleParams) error {
534 start := time.Now()
535 r0 := m.s.DeleteCustomRole(ctx, arg)
536 m.queryLatencies.WithLabelValues("DeleteCustomRole").Observe(time.Since(start).Seconds())
537 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "DeleteCustomRole").Inc()
538 return r0
539}
540
541func (m queryMetricsStore) DeleteExpiredAPIKeys(ctx context.Context, arg database.DeleteExpiredAPIKeysParams) (int64, error) {
542 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
DeleteCustomRoleMethod · 0.65

Tested by

no test coverage detected