This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
ExpandString()
ExpandString(string, object, event): String
Expand string by replacing macros with their values.
string |
String to expand |
object |
Object. Optional, required to expand object-related macros. If omitted, the management server node is used. |
event |
Event object. Optional, required to expand event-related macros |
Return
Formatted string
>>> ExpandString("%v")
3.5.90
>>> ExpandString("%n", $node)
My node name
>>> ExpandString("%N", $node, $event)
SYS_THRESHOLD_REACHED