Metrics

Get Togai Metrics

Changed on

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

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

Changes

    • warning

      added the new METER_USAGE enum value to the // response property for the response status

    • warning

      added the new NAMED_LICENSE_USAGE enum value to the // response property for the response status

    • info

      added the new METER_USAGE enum value to the request property //

    • info

      added the new NAMED_LICENSE_USAGE enum value to the request property //

    • info

      added the new HOUR enum value to the request property //