vadimshif
ServiceNow Employee

Hi

There is a property used in Incident Creation flow. Exactly delay that you spoke about: "evt_mgmt.alert_rule_delay" - seconds to wait before Alert Action rule run on updated alerts

 

Is this a global setting that would affect all alerts? I don't get why these exist but aren't documented at all on the doc website. Also is it in every version or was it introduced in just 1 version?

Sorry answered my own question. Just a note this is only available in Kingston and Jakarta and it's not in previous versions.

 

if (hashGr.next()){
timestamp = hashGr.getValue('hash'); //get last calculated timestamp
var inProgress = new GlideDateTime();
var secondsBack = gs.getProperty("evt_mgmt.alert_rule_delay", "5");
var gt = new GlideTime(1000 * secondsBack);
inProgress.subtract(gt);
var openStates = ["Open", "Reopen", "Flapping"];
var recentAlerts = new GlideRecord('em_alert');
recentAlerts.addQuery('sys_updated_on', '>=', timestamp);
recentAlerts.addQuery('sys_updated_on', '<=', inProgress);
recentAlerts.addQuery('state', 'IN', openStates);
recentAlerts.query();

 

This is from the scheduled job so it is indeed global. If you want to make it more flexible you will have to do what I said but if it's for all sources then you should be set to use this.

View solution in original post

Can you please help me with the exact path to "evt_mgmt.alert_rule_delay" property setting?

I am not able to find it under Event Management >> Alert Aggregation & RCA >> Properties.

 

Thanks,

roshan

Hi @vadimshif @robertgreen

Can you please help me with the exact path to "evt_mgmt.alert_rule_delay" property? I am not able to find it under Event Management >> Settings >> Properties.