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

Method GetHealthSettings

coderd/database/dbmetrics/querymetrics.go:1989–1995  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1987}
1988
1989func (m queryMetricsStore) GetHealthSettings(ctx context.Context) (string, error) {
1990 start := time.Now()
1991 r0, r1 := m.s.GetHealthSettings(ctx)
1992 m.queryLatencies.WithLabelValues("GetHealthSettings").Observe(time.Since(start).Seconds())
1993 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetHealthSettings").Inc()
1994 return r0, r1
1995}
1996
1997func (m queryMetricsStore) GetInboxNotificationByID(ctx context.Context, id uuid.UUID) (database.InboxNotification, error) {
1998 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetHealthSettingsMethod · 0.65

Tested by

no test coverage detected