Skip to content

/AWS1/CL_CUSRANGE

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

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_value TYPE /AWS1/CUSVALUE /AWS1/CUSVALUE

The amount of time of the specified unit.

iv_unit TYPE /AWS1/CUSUNIT /AWS1/CUSUNIT

The unit of time.

io_valuerange TYPE REF TO /AWS1/CL_CUSVALUERANGE /AWS1/CL_CUSVALUERANGE

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.

iv_timestampsource TYPE /AWS1/CUSSTRING1TO255 /AWS1/CUSSTRING1TO255

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

iv_timestampformat TYPE /AWS1/CUSSTRING1TO255 /AWS1/CUSSTRING1TO255

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".


Queryable Attributes

Value

The amount of time of the specified unit.

Accessible with the following methods

Method Description
GET_VALUE() Getter for VALUE, with configurable default
ASK_VALUE() Getter for VALUE w/ exceptions if field has no value
HAS_VALUE() Determine if VALUE has a value

Unit

The unit of time.

Accessible with the following methods

Method Description
GET_UNIT() Getter for UNIT, with configurable default
ASK_UNIT() Getter for UNIT w/ exceptions if field has no value
HAS_UNIT() Determine if UNIT has a value

ValueRange

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.

Accessible with the following methods

Method Description
GET_VALUERANGE() Getter for VALUERANGE

TimestampSource

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

Accessible with the following methods

Method Description
GET_TIMESTAMPSOURCE() Getter for TIMESTAMPSOURCE, with configurable default
ASK_TIMESTAMPSOURCE() Getter for TIMESTAMPSOURCE w/ exceptions if field has no val
HAS_TIMESTAMPSOURCE() Determine if TIMESTAMPSOURCE has a value

TimestampFormat

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".

Accessible with the following methods

Method Description
GET_TIMESTAMPFORMAT() Getter for TIMESTAMPFORMAT, with configurable default
ASK_TIMESTAMPFORMAT() Getter for TIMESTAMPFORMAT w/ exceptions if field has no val
HAS_TIMESTAMPFORMAT() Determine if TIMESTAMPFORMAT has a value