Module Values.GetSampledRequestsResponseSource

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use. Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS 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 AWS WAF selected the requests in the sample.

Sourcetype nonrec t = {
  1. sampledRequests : SampledHTTPRequests.t option;
    (*

    A complex type that contains detailed information about each of the requests in the sample.

    *)
  2. 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 AWS resource received during the specified time range.

    *)
  3. timeWindow : TimeWindow.t option;
    (*

    Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your AWS 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.

    *)
}
Sourcetype nonrec error = [
  1. | `WAFInternalErrorException of WAFInternalErrorException.t
  2. | `WAFNonexistentItemException of WAFNonexistentItemException.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval make : ?sampledRequests:??? -> ?populationSize:??? -> ?timeWindow:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `Unknown_operation_error of string * string option | `WAFInternalErrorException of WAFInternalErrorException.t | `WAFNonexistentItemException of WAFNonexistentItemException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `Unknown_operation_error of string * string option | `WAFInternalErrorException of WAFInternalErrorException.t | `WAFNonexistentItemException of WAFNonexistentItemException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Long of SampleWeight.t | `String of Action.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of HeaderName.t ]) list ] list | `String of IPString.t ]) list | `Timestamp of Timestamp.t ]) list ] list | `Long of PopulationSize.t | `Structure of (string * [> `Timestamp of Timestamp.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t