Query
query Metrics($input: MetricsQueryStringInput!) {
metrics(input: $input) {
value
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"metrics": [
{
"value": "value"
}
]
}
}Queries
metrics
Reads the tenant’s metrics, aggregated as input asks. Returns one MetricValue per result row. An invalid input fails with a top-level error.
QUERY
metrics(input: MetricsQueryStringInput!): [MetricValue!]!Arguments
input
required
What to read and how to aggregate it.
Returns
[MetricValue!]!
value
JSON!
The row as a JSON object, with one key per aggregate and per groupBy column, plus time when bin is set. Example: {"value": 42}.
Query
query Metrics($input: MetricsQueryStringInput!) {
metrics(input: $input) {
value
}
}Variables
{
"input": {
"name": "string"
}
}Response
{
"data": {
"metrics": [
{
"value": "value"
}
]
}
}Was this page helpful?