v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13103333.0 KB
domains

Retrieves a list of domain statistics for a given domain and time period. Returns statistics only for dates where data is available. Returns PERMISSION_DENIED if you don't have permission to access DomainStats for the domain.

post/v2/{+parent}/domainStats:query

Path parameters

parentstring required

Required. The parent resource name where the stats are queried. Format: domains/{domain}

Request body

pageSizeinteger

Optional. The maximum number of DomainStats resources to return in the response. The server may return fewer than this value. If unspecified, a default value of 10 will be used. The maximum value is 200.

aggregationGranularity'AGGREGATION_GRANULARITY_UNSPECIFIED' | 'DAILY' | 'OVERALL'

Optional. The granularity at which to aggregate the statistics. If unspecified, defaults to DAILY.

parentstring

Required. The parent resource name where the stats are queried. Format: domains/{domain}

pageTokenstring

Optional. The next_page_token value returned from a previous List request, if any. If the aggregation granularity is DAILY, the page token will be the encoded date + "/" + metric name. If the aggregation granularity is OVERALL, the page token will be the encoded metric name.

Response

Successful response