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

Method UpdateCustomRole

coderd/database/dbmetrics/querymetrics.go:4933–4939  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateCustomRoleParams)

Source from the content-addressed store, hash-verified

4931}
4932
4933func (m queryMetricsStore) UpdateCustomRole(ctx context.Context, arg database.UpdateCustomRoleParams) (database.CustomRole, error) {
4934 start := time.Now()
4935 r0, r1 := m.s.UpdateCustomRole(ctx, arg)
4936 m.queryLatencies.WithLabelValues("UpdateCustomRole").Observe(time.Since(start).Seconds())
4937 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "UpdateCustomRole").Inc()
4938 return r0, r1
4939}
4940
4941func (m queryMetricsStore) UpdateEncryptedAIProviderKey(ctx context.Context, arg database.UpdateEncryptedAIProviderKeyParams) (database.AIProviderKey, error) {
4942 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
UpdateCustomRoleMethod · 0.65

Tested by

no test coverage detected