Metrics

List metric names

GET
/workspaces/{workspaceId}/metrics

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

Response Body

application/json

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

Names of all metrics in the workspace, including system metrics.

{  "metricNames": [    "battery_level",    "cpu_utilization_percent",    "heap_free_bytes",    "unlock_attempt",    "unlock_duration_ms"  ]}