Hanzo
OpenapiO11y

Evaluates a dashboard variable query and returns the values the variable may…

Evaluates a dashboard variable query and returns the values the variable may take.

POST /v1/o11y/variables/query

Addresshttps://api.hanzo.ai/v1/o11y/variables/query
MethodPOST
Operationpost_o11y_variables_query
AuthAuthorization: Bearer $HANZO_API_KEY

Evaluates a dashboard variable query and returns the values the variable may take.

Callers need the viewer role; the runtime's own gate enforces it.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
querybodystringyesQuery is the variable query to evaluate.
variablesbodyobjectVariables are the current values of the other dashboard variables, for queries that reference them.
variables.*bodyobject

Response

StatusBodyMeaning
200o11y.O11yDashboardVarsOutok

200 body — 3 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yDashboardVarValues
data.variableValuesbodyobject[]VariableValues are the values, in the order the query produced them.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y variables query --query <query>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page