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.

FindAlarmByKeyRegex

FindAlarmByKeyRegex(key): Alarm

Find alarm by key using regular expression

Table 1. Parameters

key

String

Key regular expression

Return

First found Alarm object with key matching the regular expression (if several alarms match, which one is returned is not defined), or null if no alarm matches or the expression is invalid.

alarm = FindAlarmByKeyRegex("NODE_DOWN_.*"); //Will find alarm with regexp key "NODE_DOWN_.*"
println(alarm.key); //Will print key "NODE_DOWN_0x00001628"
println(alarm.message); //Will print alarm message, for example "Node down"