v1

latestOpenAPI 3.0.3Apache 2.02026-07-13121230447.8 KB
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

startTimestring date-time required

Start date time of the query (inclusive)

endTimestring date-time required

End date time of the query (exclusive)

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