...
title | Engine Compatibility |
---|
...
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 raised
meta:
...
host
- the public DNS name of the
...
- machine running the engine, including port number
meta:
...
inEvent
- the public DNS name of the
...
- machine running the engine, including port number
meta:
...
inQuery
- the public DNS name of the machine running the engine, including port numbermeta:picoId
- the version of the currently running rulesetmeta:
...
rid -
the ruleset ID of the currently running ruleset
...
meta:ruleName
...
- - the name of the rule currently being evaluated
meta:
...
Notice that these are values, and not functions
...
meta:rid() -
returns the ruleset ID of the current running ruleset.meta:version()
returns the version of the currently running ruleset.-
rulesetAuthor
- the author
from the meta section of the current rulesetmeta:rulesetDescription
- thedescription
from the meta section of the current rulesetmeta:rulesetName
- thename
from the meta section of the current rulesetmeta:rulesetURI
- the URL from which the currently running ruleset was registered/installed
The following are not yet ported from the classic engine:
meta:callingRID()
- returns returns the RID of the calling ruleset if running in a module, or the current ruleset ID otherwise.meta:callingVersion()
- returns returns the version of the calling ruleset if running in a module, or the current ruleset version otherwise.meta:moduleRIDerrorCount()
- returns returns the RID of the module if running in a module, or the current ruleset ID otherwise.meta:moduleVersion()
returns the version of the module if running in a module, or the current ruleset version otherwisenumber of errors for current rule execution. Reset to 0 for each new rule execution.-
meta:inModule()
- returns returns a Boolean value indicating whether the current code is running in a module.meta:hostmoduleRID()
- returns the hostname of the rules engine evaluating the ruleset. Note: this is the public name, not the individual machine name.meta:rulesetName()
- returns the name from the meta sections of the current rulesetmeta:rulesetAuthor()
- returns the author from the meta sections of the current rulesetmeta:rulesetDescription()
- returns the description from the meta sections of the current rulesetmeta:ruleName()
- returns the names of the rule being evaluated.meta:eci()
- returns the event channel identifier on which the current event was raisedmeta:errorCount()
- returns the number of errors for current rule execution. Reset to 0 for each new rule execution.meta:txnId()
- RID of the module if running in a module, or the current ruleset ID otherwise.meta:moduleVersion()
- returns the version of the module if running in a module, or the current ruleset version otherwise.meta:txnId()
- return the transaction ID for the current evaluation. This is mostly useful for debugging.meta:version()
- returns the version of the currently running ruleset.
Note, in the case of meta:moduleRID()
, meta:moduleVersion()
, and meta:inModule()
, care has been taken to preserve static behavior. So, for example, if you do the following, you should get the result you expect based on static function semantics:
...