Metrics

List metric label keys

GET
/workspaces/{workspaceId}/metrics/{metricName}/labels/keys

Authorization

API key Metrics: read
AuthorizationBearer <token>

API key (sf_...) with any of the required scopes. Generate it in the Spotflow portal on the settings page.

In: header

Scope: Metrics: read

Path Parameters

workspaceId*string
Formatuuid
metricName*string

Response Body

application/json

curl -X GET "https://example.com/workspaces/00000000-0000-0000-0000-000000000001/metrics/unlock_duration_ms/labels/keys"

Label keys used by the metric.

{  "labelKeys": [    "mechanism",    "result"  ]}