Data Types
In the Values section featured already some data types. Each literal has a specific data type. Here you see the full list:
Boolean
Literal | Description |
---|---|
true | Value for true / fulfilled |
false | Value for false / not fulfilled |
Examples
Number
A decimal number
Examples
Time
A time which consists of date and day time.
Besides of event times, we can also use one of following supported literals:
Literal | Description |
---|---|
now | The current time. This produces e.g. 2023-09-25 23:26 |
lastHour | The last full hour. E.g. 2023-09-25 23:00 |
lastZeroHour | The last zero hour (midnight). E.g. 2023-09-25 00:00 |
Examples
Timespan
A timespan.
A timespan literal is a combination of a number and a time unit. Following time units are supported:
Literal | Description |
---|---|
d | Days |
h | Hours |
min | Minutes |
s | Seconds |
Examples
Event
An event, which consists of:
Attributes | Description |
---|---|
| The value of the event, which is of type Number |
| The timestamp of the event, which is of type Time |
| The name of the device which is the source of this event. It is of the of type Text |
| The ID of the device, which is the source of this event. It is of the of type Text |
Examples:
Text
A text element
Everything that begins and ends with a single or double quotation mark is considered a text element. This also includes elements that cannot be assigned to one of the other data types. For example, if $Event was used but no such variable was defined, it would also be considered a text element.
Remark: we recommend to use one of the quoted forms, which makes it crystal clear for the readers that this is a text.
Examples
Last updated