Values.SampledHTTPRequestSourceRepresents a single sampled web request. The response from GetSampledRequests includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains an array of SampledHTTPRequest objects.
type nonrec t = {request : HTTPRequest.t option;A complex type that contains detailed information about the request.
*)weight : SampleWeight.t option;A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1.
*)timestamp : Timestamp.t option;The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).
*)action : Action.t option;The action that WAF applied to the request.
*)ruleNameWithinRuleGroup : EntityName.t option;The name of the Rule that the request matched. For managed rule groups, the format for this name is <vendor name>#<managed rule group name>#<rule name>. For your own rule groups, the format for this name is <rule group name>#<rule name>. If the rule is not in a rule group, this field is absent.
*)requestHeadersInserted : HTTPHeaders.t option;Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
*)responseCodeSent : ResponseStatusCode.t option;The response code that was sent for the request.
*)labels : Labels.t option;Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace. For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
*)captchaResponse : CaptchaResponse.t option;The CAPTCHA response for the request.
*)challengeResponse : ChallengeResponse.t option;The Challenge response for the request.
*)overriddenAction : Action.t option;Used only for rule group rules that have a rule action override in place in the web ACL. This is the action that the rule group rule is configured for, and not the action that was applied to the request. The action that WAF applied is the Action value.
*)}val to_value :
t ->
[> `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 ]