Module Values.RuleIpExpressionSource

An IP address expression matching certain IP addresses within a given range of IP addresses.

Sourcetype nonrec t = {
  1. evaluate : RuleIpToEvaluate.t;
    (*

    The IP address to evaluate in this condition.

    *)
  2. operator : RuleIpOperator.t;
    (*

    The operator to evaluate the IP address.

    *)
  3. values : RuleIpValueList.t;
    (*

    The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.

    *)
}
Sourceval context_ : string
Sourceval make : evaluate:RuleIpToEvaluate.t -> operator:RuleIpOperator.t -> values:RuleIpValueList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `String of RuleIpStringValue.t ] list | `Structure of (string * [> `Enum of string ]) list ]) 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