Get historical domain data for a service
GET {{fastly_url}}/metrics/domains/services/{{service_id}}?cursor&datacenter&domain&downsample&end&group_by&limit&metric®ion&start
Fetches historical domain metrics for a given Fastly service, optionally filtering and grouping the results by domain, region, or POP.
Authorization: Requires API token.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
cursor | null | Cursor value from the next_cursor field of a previous response, used to retrieve the next page. To request the first page, this should be empty. | |
datacenter | null | Limit query to one or more specific POPs. Values should be comma-separated. | |
domain | null | Limit query to one or more specific domains. Values should be comma-separated. | |
downsample | null | Duration of sample windows. | |
end | null | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided downsample value. | |
group_by | null | Dimensions to return in the query. Multiple dimensions may be separated by commas. | |
For example, group_by=domain will return one timeseries for every domain, as a total across all datacenters (POPs). | |||
limit | null | Number of results per page. The maximum is 200. | |
metric | null | The metrics to retrieve. Multiple values should be comma-separated. | |
region | null | Limit query to one or more specific geographic regions. Values should be comma-separated. | |
start | null | A valid ISO-8601-formatted date and time, or UNIX timestamp, indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided downsample value. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Accept | string |