![]() |
Tani web based tools
2.01.01
Tani web socket JSON frames
|
The event filter is a character string. It consists of a top-level predicate, which should evaluate to a boolean value.
A predicate can have parameters. These follow the predicate name in parenthesis and are separated by comma. Each parameter is another predicate. These are evaluated recursively. Whitespace is ignored except inside quotes.
Compares two values for equality.
Tests if a value is NULL.
Compares two values.
Compares two values.
Compares two values.
Compares two values.
Negates a Boolean value.
Tests if a value falls between bounds.
Tests if a value is in a list of allowed values.
Returns the logical conjunction of two values.
Returns the logical disjunction of two values.
Returns the bitwise AND of two values.
Returns the bitwise OR of two values.
Converts the first value into the data type given in the second parameter.
Tests if the current event is of the given type.
Returns a constant value.
The data types and value formats are documented at: Data Types
Returns an attribute value of the current event.
The browse path is given as one or more browse names. The names are separated by a full stop character. If required, a browse name may start with a namespace id and a colon. Optionally, the last part may be an attribute ID introduced by an at-sign.
If the browse name contains quotation marks, full stops or parentheses, enclose it by quotation marks, and double any quotation marks inside.
Select the ActiveState → Id attribute (a Boolean value)
Select the event id (the NodeId attribute of the event itself), e.g. for acknowledging an alarm
The following data types are allowed for Literal values.
The NULL type signifies the absence of a useful value. No value must be added to the Literal predicate.
A truth value. Allowed literals are:
Example:
Signed integer values. Literal values consist of an optional minus sign and one or more digits.
Example:
Unsigned integer values. Literal values consist of one or more digits.
Example:
Floating point values. Literal values consist ofan optional minus sign, one or more digits, optionally a full stop and more digits, and optionally a character E and an exponent.
Example:
A character string. Should always be enclosed in quotes.
Example:
A timestamp. Always given in ISO8601 format.
Example:
A globally unique identifier. Given in hexadecimal. Curly braces are optional.
Example:
A byte string. TODO
An OPC UA NodeId or ExtendedNodeId. Literal value is formatted as a string according to the OPC UA spedification,
Example:
An OPC UA StatusCode value. Literal value is given as an UInt32 literal.
A qualified name or localized text value. Literals are given as character strings and may be prefixed by the namespace id or locale, separated by a colon.
Example:
Show only events with Severity 500 or greater:
TODO: more examples?