GET /stats/service/{service_id}

Fetches historical stats for a given service.

Authorization: Requires API token.

Servers

Path parameters

Name Type Required Description
service_id String Yes

Request headers

Name Type Required Description
host String No

Query parameters

Name Type Required Description
to String No

Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as from.

region String No

Limit query to a specific geographic region. One of:

usa - North America. europe - Europe. anzac - Australia and New Zealand. asia - Asia. asia_india - India. asia_southkorea - South Korea. africa_std - Africa. southamerica_std - South America.

by String No

Duration of sample windows. One of:

hour - Group data by hour. minute - Group data by minute. day - Group data by day.

from String No

Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the Chronic Ruby library, such as 'yesterday', or 'two weeks ago'. Default varies based on the value of by.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.