- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 07:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 07:38 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 07:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2018 03:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2018 06:46 AM
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.