Values.CreateSamplingRuleResultSourceCreates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules, and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.
type nonrec t = {samplingRuleRecord : SamplingRuleRecord.t option;The saved rule definition and metadata.
*)}type nonrec error = [ | `InvalidRequestException of InvalidRequestException.t| `RuleLimitExceededException of RuleLimitExceededException.t| `ThrottledException of ThrottledException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InvalidRequestException of InvalidRequestException.t
| `RuleLimitExceededException of RuleLimitExceededException.t
| `ThrottledException of ThrottledException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InvalidRequestException of InvalidRequestException.t
| `RuleLimitExceededException of RuleLimitExceededException.t
| `ThrottledException of ThrottledException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Structure of
(string
* [> `Structure of
(string
* [> `Double of FixedRate.t
| `Integer of Priority.t
| `Map of
([> `String of AttributeKey.t ]
* [> `String of AttributeValue.t ])
list
| `String of RuleName.t
| `Structure of
(string
* [> `Double of MaxRate.t
| `Integer of CooldownWindowMinutes.t ])
list ])
list
| `Timestamp of Timestamp.t ])
list ])
list ]