Module Values.SamplingStatisticsDocumentSource

Request sampling results for a single rule from a service. Results are for the last 10 seconds unless the service has been assigned a longer reporting interval after a previous call to GetSamplingTargets.

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

    The name of the sampling rule.

    *)
  2. clientID : ClientID.t;
    (*

    A unique identifier for the service in hexadecimal.

    *)
  3. timestamp : Timestamp.t;
    (*

    The current time.

    *)
  4. requestCount : RequestCount.t;
    (*

    The number of requests that matched the rule.

    *)
  5. sampledCount : SampledCount.t;
    (*

    The number of requests recorded.

    *)
  6. borrowCount : BorrowCount.t option;
    (*

    The number of requests recorded with borrowed reservoir quota.

    *)
}
Sourceval context_ : string
Sourceval make : ?borrowCount:??? -> ruleName:RuleName.t -> clientID:ClientID.t -> timestamp:Timestamp.t -> requestCount:RequestCount.t -> sampledCount:SampledCount.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of RequestCount.t | `String of RuleName.t | `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