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

Method GetGroupAIBudget

coderd/database/dbmetrics/querymetrics.go:1917–1923  ·  view source on GitHub ↗
(ctx context.Context, groupID uuid.UUID)

Source from the content-addressed store, hash-verified

1915}
1916
1917func (m queryMetricsStore) GetGroupAIBudget(ctx context.Context, groupID uuid.UUID) (database.GroupAiBudget, error) {
1918 start := time.Now()
1919 r0, r1 := m.s.GetGroupAIBudget(ctx, groupID)
1920 m.queryLatencies.WithLabelValues("GetGroupAIBudget").Observe(time.Since(start).Seconds())
1921 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetGroupAIBudget").Inc()
1922 return r0, r1
1923}
1924
1925func (m queryMetricsStore) GetGroupByID(ctx context.Context, id uuid.UUID) (database.Group, error) {
1926 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetGroupAIBudgetMethod · 0.65

Tested by

no test coverage detected