MCPcopy Create free account
hub / github.com/coder/coder / UpsertAISeatState

Method UpsertAISeatState

coderd/database/dbmetrics/querymetrics.go:5733–5739  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpsertAISeatStateParams)

Source from the content-addressed store, hash-verified

5731}
5732
5733func (m queryMetricsStore) UpsertAISeatState(ctx context.Context, arg database.UpsertAISeatStateParams) (bool, error) {
5734 start := time.Now()
5735 r0, r1 := m.s.UpsertAISeatState(ctx, arg)
5736 m.queryLatencies.WithLabelValues("UpsertAISeatState").Observe(time.Since(start).Seconds())
5737 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "UpsertAISeatState").Inc()
5738 return r0, r1
5739}
5740
5741func (m queryMetricsStore) UpsertAnnouncementBanners(ctx context.Context, value string) error {
5742 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
UpsertAISeatStateMethod · 0.65

Tested by

no test coverage detected