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

Method GetPresetsBackoff

coderd/database/dbmetrics/querymetrics.go:2437–2443  ·  view source on GitHub ↗
(ctx context.Context, lookback time.Time)

Source from the content-addressed store, hash-verified

2435}
2436
2437func (m queryMetricsStore) GetPresetsBackoff(ctx context.Context, lookback time.Time) ([]database.GetPresetsBackoffRow, error) {
2438 start := time.Now()
2439 r0, r1 := m.s.GetPresetsBackoff(ctx, lookback)
2440 m.queryLatencies.WithLabelValues("GetPresetsBackoff").Observe(time.Since(start).Seconds())
2441 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetPresetsBackoff").Inc()
2442 return r0, r1
2443}
2444
2445func (m queryMetricsStore) GetPresetsByTemplateVersionID(ctx context.Context, templateVersionID uuid.UUID) ([]database.TemplateVersionPreset, error) {
2446 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetPresetsBackoffMethod · 0.65

Tested by

no test coverage detected