Skip to main content
POST
/
metrics
/
dashboards
/
{dashboardUid}
/
query
Query a dashboard
curl --request POST \
  --url https://v1.api.altostrat.io/metrics/dashboards/{dashboardUid}/query \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "now-6h",
  "to": "now",
  "interval": "10m",
  "maxDataPoints": 1500,
  "variables": {
    "Site": "9c69345c-8d39-4786-9f17-8153c988c89a"
  },
  "panels": [
    1,
    2
  ]
}
'
{
  "dashboard": {
    "uid": "<string>",
    "title": "<string>"
  },
  "time_range": {},
  "interval": "10m",
  "variables": {},
  "results": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dashboardUid
string
required

The Grafana dashboard UID.

Example:

"router_system_metrics"

Body

application/json
from
string
Example:

"now-6h"

to
string
Example:

"now"

interval
string
Example:

"10m"

maxDataPoints
integer
Example:

1500

variables
object
Example:
{
"Site": "9c69345c-8d39-4786-9f17-8153c988c89a"
}
panels
integer[]
Example:
[1, 2]

Response

Dashboard query results.

dashboard
object
time_range
object
interval
string
Example:

"10m"

variables
object
results
object[]