Module Values.SamplingTargetDocumentSource

Temporary changes to a sampling rule configuration. To meet the global sampling target for a rule, X-Ray calculates a new reservoir for each service based on the recent sampling results of all services that called GetSamplingTargets.

Sourcetype nonrec t = {
  1. ruleName : String_.t option;
    (*

    The name of the sampling rule.

    *)
  2. fixedRate : Double.t option;
    (*

    The percentage of matching requests to instrument, after the reservoir is exhausted.

    *)
  3. reservoirQuota : NullableInteger.t option;
    (*

    The number of requests per second that X-Ray allocated for this service.

    *)
  4. reservoirQuotaTTL : Timestamp.t option;
    (*

    When the reservoir quota expires.

    *)
  5. interval : NullableInteger.t option;
    (*

    The number of seconds for the service to wait before getting sampling targets again.

    *)
  6. samplingBoost : SamplingBoost.t option;
    (*

    The sampling boost that X-Ray allocated for this service.

    *)
}
Sourceval make : ?ruleName:??? -> ?fixedRate:??? -> ?reservoirQuota:??? -> ?reservoirQuotaTTL:??? -> ?interval:??? -> ?samplingBoost:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of Double.t | `Integer of NullableInteger.t | `String of String_.t | `Structure of (string * [> `Double of Double.t | `Timestamp of Timestamp.t ]) list | `Timestamp of Timestamp.t ]) 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