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

Method FavoriteWorkspace

coderd/database/dbmetrics/querymetrics.go:933–939  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

931}
932
933func (m queryMetricsStore) FavoriteWorkspace(ctx context.Context, id uuid.UUID) error {
934 start := time.Now()
935 r0 := m.s.FavoriteWorkspace(ctx, id)
936 m.queryLatencies.WithLabelValues("FavoriteWorkspace").Observe(time.Since(start).Seconds())
937 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "FavoriteWorkspace").Inc()
938 return r0
939}
940
941func (m queryMetricsStore) FetchMemoryResourceMonitorsByAgentID(ctx context.Context, agentID uuid.UUID) (database.WorkspaceAgentMemoryResourceMonitor, error) {
942 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
FavoriteWorkspaceMethod · 0.65

Tested by

no test coverage detected