Module Values.RangeSource

The relative time period over which data is included in the aggregation.

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

    The amount of time of the specified unit.

    *)
  2. unit : Unit.t option;
    (*

    The unit of time.

    *)
  3. valueRange : ValueRange.t option;
    (*

    A structure letting customers specify a relative time window over which over which data is included in the Calculated Attribute. Use positive numbers to indicate that the endpoint is in the past, and negative numbers to indicate it is in the future. ValueRange overrides Value.

    *)
  4. timestampSource : String1To255.t option;
    (*

    An expression specifying the field in your JSON object from which the date should be parsed. The expression should follow the structure of \"{ObjectTypeName.<Location of timestamp field in JSON pointer format>}\". E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "1737587945945"}}, then TimestampSource should be "{MyType.generatedAt.timestamp}".

    *)
  5. timestampFormat : String1To255.t option;
    (*

    The format the timestamp field in your JSON object is specified. This value should be one of EPOCHMILLI (for Unix epoch timestamps with second/millisecond level precision) or ISO_8601 (following ISO_8601 format with second/millisecond level precision, with an optional offset of Z or in the format HH:MM or HHMM.). E.g. if your object type is MyType and source JSON is {"generatedAt": {"timestamp": "2001-07-04T12:08:56.235-0700"}}, then TimestampFormat should be "ISO_8601".

    *)
}
Sourceval make : ?value:??? -> ?unit:??? -> ?valueRange:??? -> ?timestampSource:??? -> ?timestampFormat:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Value.t | `String of String1To255.t | `Structure of (string * [> `Integer of ValueRangeStart.t ]) 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