Metrics
Get Togai Metrics
Changed onTogai 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
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Changes
- warning
added the new
METER_USAGEenum value to the//response property for the response status - warning
added the new
NAMED_LICENSE_USAGEenum value to the//response property for the response status - info
added the new
METER_USAGEenum value to the request property// - info
added the new
NAMED_LICENSE_USAGEenum value to the request property//
- warning
- info
added the new
HOURenum value to the request property//
- info