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

Method DeleteAPIKeyByID

coderd/database/dbmetrics/querymetrics.go:413–419  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

411}
412
413func (m queryMetricsStore) DeleteAPIKeyByID(ctx context.Context, id string) error {
414 start := time.Now()
415 r0 := m.s.DeleteAPIKeyByID(ctx, id)
416 m.queryLatencies.WithLabelValues("DeleteAPIKeyByID").Observe(time.Since(start).Seconds())
417 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "DeleteAPIKeyByID").Inc()
418 return r0
419}
420
421func (m queryMetricsStore) DeleteAPIKeysByUserID(ctx context.Context, userID uuid.UUID) error {
422 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
DeleteAPIKeyByIDMethod · 0.65

Tested by

no test coverage detected