Stellar Functions
The Stellar language supports a number of functions.
-
Referencing fields in the enriched JSON
-
String literals are quoted with either
'or" -
String literals support escaping for
',",\t,\r,\n, and backslash-
The literal
'\'foo\''would represent'foo' -
The literal
"\"foo\""would represent"foo" -
The literal
'foo \\ bar'would representfoo \ bar
-
-
Simple boolean operations:
and,not,or -
Simple arithmetic operations:
*,/,+,-on real numbers or integers -
Simple comparison operations
<,>,<=,>= -
Simple equality comparison operations
==,!= -
if/then/else comparisons (for example,
if var1 < 10 then 'less than 10' else '10 or more') -
Simple match evaluations (for example,
match{ var1 < 10 => 'warn', var1 >= 10 => 'critical', default => 'info'} -
Determining whether a field exists (via
exists) -
An
inoperator that works like theinin Python -
The ability to have parenthesis to make order of operations explicit
-
User defined functions, including Lambda expressions
