get_revenue_statistics_time_series
async
¶
get_revenue_statistics_time_series(
statistic_type: TimeSeriesStatisticType,
time_window: TimeWindow,
scope: Scope,
interval: IntervalType,
currency: Currency,
*,
config_overrides: Optional[AsyncWAFV2ClientConfig] = 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/async_wafv2.py
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 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 | |