get_revenue_statistics_time_series
¶
get_revenue_statistics_time_series(
statistic_type: TimeSeriesStatisticType,
time_window: TimeWindow,
scope: Scope,
interval: IntervalType,
currency: Currency,
*,
config_overrides: Optional[WAFV2ClientConfig] = None,
group_by: Optional[GroupByType] = None,
filters: Optional[MonetizationFilterList] = None,
limit: Optional[MaxDataPoints] = None,
next_marker: Optional[NextMarker] = None,
) -> GetRevenueStatisticsTimeSeriesResponse
Retrieves time series data for monetization revenue. Returns data points aggregated at the specified interval for the given time window. 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:
-
statistic_type(TimeSeriesStatisticType) –The type of time series data to retrieve:
DATE_HISTOGRAMfor revenue over time, orPAYMENT_TRAFFICfor payment traffic patterns. -
time_window(TimeWindow) –The time range for the query. Specify start and end timestamps.
-
scope(Scope) –Specifies whether this is for a Amazon CloudFront distribution (
CLOUDFRONT) or for a regional application (REGIONAL). -
interval(IntervalType) –The time interval for aggregating data points:
MINUTELY,FIVE_MINUTELY,HOURLY, orDAILY. -
currency(Currency) –The currency for the amounts in the response.
-
group_by(Optional[GroupByType], default:None) –The dimension to group results by.
-
filters(Optional[MonetizationFilterList], default:None) –Optional filters to narrow the results.
-
limit(Optional[MaxDataPoints], default:None) –The maximum number of data points to return. Minimum: 1. Maximum: 10000.
-
next_marker(Optional[NextMarker], default:None) –When you get a paginated response, this marker indicates that additional results are available.
Raises:
-
WAFInternalErrorException–Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request.
-
WAFInvalidOperationException–The operation isn't valid.
-
WAFInvalidParameterException–The operation failed because WAF didn't recognize a parameter in the request. For example:
-
You specified a parameter name or value that isn't valid.
-
Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.
-
You tried to update a
WebACLwith aDefaultActionthat isn't among the types available at DefaultAction. -
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.
-
-
WAFNonexistentItemException–WAF couldn’t perform the operation because your resource doesn't exist. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wafv2/_services/wafv2.py
2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 | |