// THE RuleConfig.groovy FILE IS SAVED UNDER // RAS_HOME/scripts/rules FOLDER. package scripts.rules; class RuleConfig { ////////////////////////////// CONFIGURATION FOR EVERYBODY ///////////////////////////////////////////////////////////////// public static publicConf = [:]; ////////////////////////////// CONFIGURATION FOR GROUP 1 ////////////////////////////////////////////////////////////////// public static conf1 = [ "Last10Minutes": ["Description":"Events updated in last 10 minutes", "Expression":"LastNotifiedAt != null && (now() - (LastNotifiedAt) < 1000*60*10)"], "InMaintenance": ["Description":"Events of devices that are in maintenance", "Expression":"InMaintenance==\"true\""], "RouterEvents": ["Description":"Events of routers", "Expression":"ElementClassName==\"Router\" || (ElementClassName == null && ClassName==\"Router\")"], ]; ////////////////////////////// CONFIGURATION FOR GROUP 2 ////////////////////////////////////////////////////////////////// public static conf2 = [ "RouterEvents": ["Description":"Events of routers", "Expression":"ElementClassName==\"Router\" || (ElementClassName == null && ClassName==\"Router\")"], "CriticalEvents": ["Description":"Critical Events", "Expression":"Severity == 1"], ]; }