Example
Last updated
Last updated
An example Data Stream can be found below that demonstrates how to use this Transformation to add two new fields: a conversion to Fahrenheit and a 'hot' indicator.
Refer to configuration to understand all configuration options of this Agent.
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Country, Location, Unit and Vibration in the examples below are attribute names.
Create a new string using data points from the stream
Add a "+" sign to add string values together.
Create a hard-coded new string value
Using the short-hand If-statement the following reads “If the vibration is larger than 9000 then value is High otherwise it’s Medium”
Current date and time
Add two days to the current date and time
This will return true or false. Please note that the Data Type needs to be set to Boolean.
Any C# Math library function can be used to alter data as needed. Any method within the library can be used without issue.
Square Root
Power of 3
Round to 4 decimal Places
Operators precedence is respected following C# rules (Operator precedence and associativity).
Primary
x.y f(x) a[x] new typeof
Unary
+ - ! (T)x
Multiplicative
* / %
Additive
+ -
Relational and type testing
< > <= >= is as
Equality
== !=
Logical AND
&
Logical OR
|
Logical XOR
^
Conditional AND
&&
Conditional OR
||
Conditional
?:
Assignment
=
Null coalescing
??
Data Stream
C0mp|ex123