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

Method UpdateAPIKeyByID

coderd/database/dbmetrics/querymetrics.go:4757–4763  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateAPIKeyByIDParams)

Source from the content-addressed store, hash-verified

4755}
4756
4757func (m queryMetricsStore) UpdateAPIKeyByID(ctx context.Context, arg database.UpdateAPIKeyByIDParams) error {
4758 start := time.Now()
4759 r0 := m.s.UpdateAPIKeyByID(ctx, arg)
4760 m.queryLatencies.WithLabelValues("UpdateAPIKeyByID").Observe(time.Since(start).Seconds())
4761 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "UpdateAPIKeyByID").Inc()
4762 return r0
4763}
4764
4765func (m queryMetricsStore) UpdateChatACLByID(ctx context.Context, arg database.UpdateChatACLByIDParams) error {
4766 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
UpdateAPIKeyByIDMethod · 0.65

Tested by

no test coverage detected