Metrics
Get Togai Metrics
Togai Metrics API allows you to fetch different metrics from Events, Usage Meters and PricePlans with multiple queryable options. A single request can query up to five metrics. Single response can contain a maximum of 300 data points.
post/metrics
Request body
Example request
{
"startTime": "2017-07-21T00:00:00Z",
"endTime": "2017-07-21T00:00:00Z",
"metricQueries": [
{
"filters": [
{
"fieldName": "ACCOUNT_ID",
"fieldValues": [
"account#1"
]
}
]
}
]
}Response
Success response