Module Values.ThresholdSource

The threshold used with a non-aggregate check expression. The non-aggregate check expression will be applied to each row in a specific column. Then the threshold will be used to determine whether the validation succeeds.

Sourcetype nonrec t = {
  1. value : ThresholdValue.t;
    (*

    The value of a threshold.

    *)
  2. type_ : ThresholdType.t option;
    (*

    The type of a threshold. Used for comparison of an actual count of rows that satisfy the rule to the threshold value.

    *)
  3. unit : ThresholdUnit.t option;
    (*

    Unit of threshold value. Can be either a COUNT or PERCENTAGE of the full sample size used for validation.

    *)
}
Sourceval context_ : string
Sourceval make : ?type_:??? -> ?unit:??? -> value:ThresholdValue.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of ThresholdValue.t | `Enum of string ]) 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