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

Method GetDeploymentID

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

Source from the content-addressed store, hash-verified

1779}
1780
1781func (m queryMetricsStore) GetDeploymentID(ctx context.Context) (string, error) {
1782 start := time.Now()
1783 r0, r1 := m.s.GetDeploymentID(ctx)
1784 m.queryLatencies.WithLabelValues("GetDeploymentID").Observe(time.Since(start).Seconds())
1785 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "GetDeploymentID").Inc()
1786 return r0, r1
1787}
1788
1789func (m queryMetricsStore) GetDeploymentWorkspaceAgentStats(ctx context.Context, createdAt time.Time) (database.GetDeploymentWorkspaceAgentStatsRow, error) {
1790 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
GetDeploymentIDMethod · 0.65

Tested by

no test coverage detected