Module Values.CalendarIntervalSource

If the interval for this service level objective is a calendar interval, this structure contains the interval specifications.

Sourcetype nonrec t = {
  1. startTime : Timestamp.t;
    (*

    The date and time when you want the first interval to start. Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m. When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: 1698778057 As soon as one calendar interval ends, another automatically begins.

    *)
  2. durationUnit : DurationUnit.t;
    (*

    Specifies the calendar interval unit.

    *)
  3. duration : CalendarIntervalDuration.t;
    (*

    Specifies the duration of each calendar interval. For example, if Duration is 1 and DurationUnit is MONTH, each interval is one month, aligned with the calendar.

    *)
}
Sourceval context_ : string
Sourceval make : startTime:Timestamp.t -> durationUnit:DurationUnit.t -> duration:CalendarIntervalDuration.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of CalendarIntervalDuration.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