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

Method GetGroups

coderd/database/dbmetrics/querymetrics.go:1981–1987  ·  view source on GitHub ↗
(ctx context.Context, arg database.GetGroupsParams)

Source from the content-addressed store, hash-verified

1979}
1980
1981func (m queryMetricsStore) GetGroups(ctx context.Context, arg database.GetGroupsParams) ([]database.GetGroupsRow, error) {
1982 start := time.Now()
1983 r0, r1 := m.s.GetGroups(ctx, arg)
1984 m.queryLatencies.WithLabelValues("GetGroups").Observe(time.Since(start).Seconds())
1985 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetGroups").Inc()
1986 return r0, r1
1987}
1988
1989func (m queryMetricsStore) GetHealthSettings(ctx context.Context) (string, error) {
1990 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetGroupsMethod · 0.65

Tested by

no test coverage detected