GetRevenueStatisticsRequest
¶
Source code in docs_src/capo_wafv2/types/get_revenue_statistics_request.py
currency
instance-attribute
¶
currency: Currency
The currency for the revenue amounts in the response.
filters
instance-attribute
¶
filters: NotRequired[MonetizationFilterList]
Optional filters to narrow the results.
group_by
instance-attribute
¶
group_by: NotRequired[GroupByType]
The dimension to group results by: NAME, CATEGORY, INTENT, ORGANIZATION, or WEBACL. Required when StatisticType is TOP_SOURCES_BY_REVENUE. Not required for TOP_PATHS_BY_REVENUE, where results are grouped by content path. If StatisticType is TOP_SOURCES_BY_REVENUE and GroupBy is omitted, the request is rejected with a WAFInvalidParameterException.
limit
instance-attribute
¶
limit: NotRequired[PathStatisticsLimit]
The maximum number of results to return.
next_marker
instance-attribute
¶
next_marker: NotRequired[NextMarker]
When you get a paginated response, this marker indicates that additional results are available. Use it in a subsequent request to retrieve the next page of results.
scope
instance-attribute
¶
scope: Scope
Specifies whether this is for a Amazon CloudFront distribution (CLOUDFRONT) or for a regional application (REGIONAL).
sort_by
instance-attribute
¶
sort_by: NotRequired[RankingSortBy]
The field to sort results by: REVENUE, PERCENTAGE, or NAME.
sort_order
instance-attribute
¶
sort_order: NotRequired[SortOrder]
The sort order: ASC for ascending or DESC for descending.
statistic_type
instance-attribute
¶
statistic_type: RankingStatisticType
TOP_SOURCES_BY_REVENUE ranks revenue from AI bot traffic, grouped by the dimension you specify in the GroupBy parameter (NAME, CATEGORY, INTENT, ORGANIZATION, or WEBACL); GroupBy is required for this statistic type. TOP_PATHS_BY_REVENUE ranks revenue by path.
time_window
instance-attribute
¶
time_window: TimeWindow
The time range for the query. Specify start and end timestamps.