InsertRollingWallclock
SMT that inserts the system clock value as a message header, a value adapted to a specified time window boundary, for example every 15 minutes, or one hour.
The value inserted is stored as a STRING, and it holds either a string representation of the date and time epoch value, or a string representation of the date and time in the format specified.
Transform Type Class
Configuration
Name | Description | Type | Default | Valid Values | Importance |
---|---|---|---|---|---|
| The name of the header to insert the timestamp into. | String | High | ||
| Sets the header value inserted. It can be epoch or string. If string is used, then the 'format' setting is required." | String | format | epoch,format | High |
| Sets the format of the header value inserted if the type was set to string. It can be any valid java date format. | String | High | ||
| Sets the window type. It can be fixed or rolling. | String | minutes | hours, minutes, seconds | High |
| Sets the window size. It can be any positive integer, and depending on the | Int | 15 | High | |
| Sets the timezone. It can be any valid java timezone. Overwrite it when | String | UTC | High |
Example
To store the epoch value, use the following configuration:
To store a string representation of the date and time in the format yyyy-MM-dd HH:mm:ss.SSS
, use the following:
To use the timezone Asia/Kolkoata
, use the following:
Last updated