Environment Analytics

Get response status counts for v2 and v4 APIs from specified environment

Get v2 and v4 API analytics response status counts. Response statuses are grouped by endpoint and status code hundreds.

get/analytics/response-status-ranges

Request

  • Base URL
    /management/v2/environments/DEFAULT (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /management/v2/environments/DEFAULT/analytics/response-status-ranges
  • Auth
    • HTTP basic
    • or API key in cookie Auth-Graviteeio-APIM

Query parameters

frominteger

The timestamp in ms from which the logs will be returned.

tointeger

The timestamp in ms to which the logs will be returned.

Response

Analytics for status codes by entrypoint at environment level

rangesobject

Global status ranges. Alongside the <from>-<to> range keys, the reserved key unknown holds the requests those ranges cannot classify — typically a request whose response status was never committed, indexed with status 0.

Example response

{
  "ranges": {
    "100.0-200.0": {
      "value": 5
    },
    "200.0-300.0": {
      "value": 357
    },
    "300.0-400.0": {
      "value": 0
    },
    "400.0-500.0": {
      "value": 0
    },
    "500.0-600.0": {
      "value": 0
    }
  }
}

Changes

No recorded changes to this operation across all 65 revisions of this API.