Module Values.SamplingBoostStatisticsDocumentSource

Request anomaly stats 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. serviceName : ServiceName.t;
    (*

    Matches the name that the service uses to identify itself in segments.

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

    The current time.

    *)
  4. anomalyCount : AnomalyCount.t;
    (*

    The number of requests with anomaly.

    *)
  5. totalCount : TotalCount.t;
    (*

    The number of requests that associated to the rule.

    *)
  6. sampledAnomalyCount : SampledAnomalyCount.t;
    (*

    The number of requests with anomaly recorded.

    *)
}
Sourceval context_ : string
Sourceval make : ruleName:RuleName.t -> serviceName:ServiceName.t -> timestamp:Timestamp.t -> anomalyCount:AnomalyCount.t -> totalCount:TotalCount.t -> sampledAnomalyCount:SampledAnomalyCount.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of AnomalyCount.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