CDN Statistics
Aggregated alias usage statistics
Changed onGet 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 URLhttps://api.gcore.com
- URLhttps://api.gcore.com/cdn/statistics/aliases_usage/aggregated
- AuthHTTP 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.
Example response
{
"resource": {
"1": {
"metrics": {
"alias_usage": 1
}
}
}
}Changes
- info
endpoint added
- info