Get Metrics (/widget/metrics)
Get metrics grouped, sorted and filtered, presented to be consumed by a widget
Authorization
bearerAuth user, superuser, admin, superadmin, readonlyIn: header
Scope: user, superuser, admin, superadmin, readonly
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/widget/metrics" \ -H "Content-Type: application/json" \ -d '{ "filter_by": { "date_range": { "to": "string", "from": "string" } }, "metrics": [ "total_time" ] }'{ "series": [ { "name": "string", "key": "string", "label": "string", "axis": "string", "points": [ { "x": 0.1, "y": 0.1 } ] } ]}