meta
The meta
library provides information about the running ruleset. The following are available (notice that these are values, not functions):
meta:eci
- the event channel identifier on which the current event was raisedmeta:host
- the public DNS name of the machine running the engine, including port number. Does not include the trailing "/". ex. http://localhost:8080 You may configure this value when starting your pico engine. See the developer tips page to see why and how.meta:inEvent
- Boolean valuetrue
if the engine is evaluating an event for this pico,false
otherwisemeta:inQuery
- Boolean valuetrue
if the engine is evaluating a query for this pico,false
otherwisemeta:picoId
- the ID of the currently running picometa:rid -
the ruleset ID of the currently running rulesetmeta:ruleName
- the name of the rule currently being evaluatedmeta:rulesetURI
- the URL from which the currently running ruleset was registered/installedmeta:txnId
- the transaction ID for the current evaluation. This is mostly useful for debugging or as a correlation identifiermeta:rulesetConfig
- the configuration Map given when the ruleset was installed in the pico
Wrangler and Meta
Some of the data in the meta block is also available through Wrangler:
wrangler:rulesetMeta(meta:rid){"author"}
- the author from the meta section of the current ruleset
wrangler:rulesetMeta(
meta:rid){"description"} - the description
from the meta section of the current ruleset
wrangler:rulesetMeta(
meta:rid){"name"} - the name
from the meta section of the current ruleset