revenue_statistics
Creates, updates, deletes, gets or lists a revenue_statistics resource.
Overview
| Name | revenue_statistics |
| Type | Resource |
| Id | aws.wafv2.revenue_statistics |
Fields
The following fields are returned by SELECT queries:
- get_revenue_statistics
| Name | Datatype | Description |
|---|---|---|
next_marker | string | When you get a paginated response, this marker indicates that additional results are available. (pattern: <code>.\S.</code>) |
revenue_path_statistics | array | Statistics for top revenue paths. Populated when StatisticType is TOP_PATHS_BY_REVENUE. |
source_statistics | array | Statistics for top revenue sources (AI bots). Populated when StatisticType is TOP_SOURCES_BY_REVENUE. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_revenue_statistics | select | region | Retrieves ranked monetization statistics. Use the StatisticType parameter to specify the ranking: TOP_SOURCES_BY_REVENUE for top sources by revenue, or TOP_PATHS_BY_REVENUE for top content paths by revenue. This operation is only available for CLOUDFRONT scope. The maximum supported time window is 90 days. When no CurrencyMode filter is provided, results default to REAL. To retrieve test data, include a CurrencyMode filter with the value TEST. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_revenue_statistics
Retrieves ranked monetization statistics. Use the StatisticType parameter to specify the ranking: TOP_SOURCES_BY_REVENUE for top sources by revenue, or TOP_PATHS_BY_REVENUE for top content paths by revenue. This operation is only available for CLOUDFRONT scope. The maximum supported time window is 90 days. When no CurrencyMode filter is provided, results default to REAL. To retrieve test data, include a CurrencyMode filter with the value TEST.
SELECT
next_marker,
revenue_path_statistics,
source_statistics
FROM aws.wafv2.revenue_statistics
WHERE region = '{{ region }}' -- required
;