Module Values.PITPolicyRuleSource

A rule in the Point in Time (PIT) policy representing when to take snapshots and how long to retain them for.

Sourcetype nonrec t = {
  1. ruleID : PositiveInteger.t option;
    (*

    The ID of the rule.

    *)
  2. units : PITPolicyRuleUnits.t;
    (*

    The units used to measure the interval and retentionDuration.

    *)
  3. interval : StrictlyPositiveInteger.t;
    (*

    How often, in the chosen units, a snapshot should be taken.

    *)
  4. retentionDuration : StrictlyPositiveInteger.t;
    (*

    The duration to retain a snapshot for, in the chosen units.

    *)
  5. enabled : Boolean.t option;
    (*

    Whether this rule is enabled or not.

    *)
}
Sourceval context_ : string
Sourceval make : ?ruleID:??? -> ?enabled:??? -> units:PITPolicyRuleUnits.t -> interval:StrictlyPositiveInteger.t -> retentionDuration:StrictlyPositiveInteger.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Integer of StrictlyPositiveInteger.t | `Long of PositiveInteger.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