Values.GetSampledRequestsResponseSourceGets detailed information about a specified number of requests--a sample--that WAF randomly selects from among the first 5,000 requests that your Amazon Web Services resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours. GetSampledRequests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests returns an updated time range. This new time range indicates the actual period during which WAF selected the requests in the sample.
type nonrec t = {sampledRequests : SampledHTTPRequests.t option;A complex type that contains detailed information about each of the requests in the sample.
*)populationSize : PopulationSize.t option;The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your Amazon Web Services resource received during the specified time range.
*)timeWindow : TimeWindow.t option;Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
*)}type nonrec error = [ | `WAFInternalErrorException of WAFInternalErrorException.t| `WAFInvalidParameterException of WAFInvalidParameterException.t| `WAFNonexistentItemException of WAFNonexistentItemException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `Unknown_operation_error of string * string option
| `WAFInternalErrorException of WAFInternalErrorException.t
| `WAFInvalidParameterException of WAFInvalidParameterException.t
| `WAFNonexistentItemException of WAFNonexistentItemException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `Unknown_operation_error of string * string option
| `WAFInternalErrorException of WAFInternalErrorException.t
| `WAFInvalidParameterException of WAFInvalidParameterException.t
| `WAFNonexistentItemException of WAFNonexistentItemException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Integer of ResponseStatusCode.t
| `List of
[> `Structure of
(string * [> `String of HeaderName.t ]) list ]
list
| `Long of SampleWeight.t
| `String of Action.t
| `Structure of
(string
* [> `Enum of string
| `Integer of ResponseCode.t
| `List of
[> `Structure of
(string * [> `String of HeaderName.t ]) list ]
list
| `Long of SolveTimestamp.t
| `String of IPString.t ])
list
| `Timestamp of Timestamp.t ])
list ]
list
| `Long of PopulationSize.t
| `Structure of (string * [> `Timestamp of Timestamp.t ]) list ])
list ]