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

Method GetMetrics

scaletest/workspaceupdates/run.go:254–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252)
253
254func (r *Runner) GetMetrics() map[string]any {
255 latencyMap := make(map[string]float64)
256 for wsName, ws := range r.workspaces {
257 latencyMap[wsName] = ws.updateLatency.Seconds()
258 }
259 return map[string]any{
260 WorkspaceUpdatesLatencyMetric: latencyMap,
261 }
262}
263
264func (r *Runner) Cleanup(ctx context.Context, id string, logs io.Writer) error {
265 for i, runner := range r.workspacebuildRunners {

Callers 1

TestRunFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestRunFunction · 0.76