CDN Statistics

Aggregated alias usage statistics

Changed on

Get the number of aliases in use.

Request URL parameters should be added as a query string after the endpoint.

The requested period is always expanded to whole calendar months, so a request for part of a month returns the count for its entire containing month.

get/cdn/statistics/aliases_usage/aggregated

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/cdn/statistics/aliases_usage/aggregated
  • Auth
    HTTP apikey

Query parameters

fromstring required

Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)

tostring required

End of the requested time period (ISO 8601/RFC 3339 format, UTC.)

group_bystring

Output data grouping.

Possible value:

  • resource - Data is grouped by CDN resources.
resourceinteger

CDN resources IDs by that statistics data is grouped.

To request multiple values, use:

  • &resource=1&resource=2

If CDN resource ID is not specified, data related to all CDN resources is returned.

flatboolean

The way the parameters are arranged in the response.

Possible values:

  • true – Flat structure is used.
  • false – Embedded structure is used (default.)

Response

Successful.

resourceobject

Resources IDs by which statistics data is grouped.

1 (example)object

CDN resource ID for which statistics data is shown.

clientobject

Client IDs by which statistics data is grouped.

12 (example)object

Client ID for which statistics data is shown.

Example response

{
  "resource": {
    "1": {
      "metrics": {
        "alias_usage": 1
      }
    }
  }
}

Changes