Module Values.AlarmPromQLCriteriaSource

Contains the configuration that determines how a PromQL alarm evaluates its contributors, including the query to run and the durations that define when contributors transition between states.

Sourcetype nonrec t = {
  1. query : Query.t;
    (*

    The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.

    *)
  2. pendingPeriod : PendingPeriod.t option;
    (*

    The duration, in seconds, that a contributor must be continuously breaching before it transitions to the ALARM state.

    *)
  3. recoveryPeriod : RecoveryPeriod.t option;
    (*

    The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the OK state.

    *)
}
Sourceval context_ : string
Sourceval make : ?pendingPeriod:??? -> ?recoveryPeriod:??? -> query:Query.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of PendingPeriod.t | `String of Query.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