- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 11:24 AM
I have a PA dashboard that tracks number of security incidents created per day. I set Threshold where if over 3000 security incidents are created, send a notification. We want to generate an INC after the threshold is breached and assign it to our team. Any suggestions I can do to generate an INC? Possibly using Email Notification Script?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 01:49 PM
Hi @Ivan39,
It looks like the notification is triggered by an event - pa.job.threshold.notification
You should be able to write a Script Action to trigger some script when the event is fired.
Of course, you would want to add some condition that the Script Action is triggered only for a specific threshold.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 01:49 PM
Hi @Ivan39,
It looks like the notification is triggered by an event - pa.job.threshold.notification
You should be able to write a Script Action to trigger some script when the event is fired.
Of course, you would want to add some condition that the Script Action is triggered only for a specific threshold.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2024 01:33 PM
Thank you for your response. I think Script Action should do the job. Do I create this condition like this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2024 02:14 PM
I have not tested this but it looks like the current object refers to a Threshold [pa_thresholds] record.
And my guess is that pa.job.threshold.notification event will be triggered when a score surpasses a threshold, so you can use a script something like the following;
(function createIncidentThrehold(){
//Check if the event was triggered from the threshold record we want
if( current.getUniqueValue() == 'use your [pa_thresholds] sys_id')
{
//create incident;
}
})();
This is just an example, you can use different conditions such as using the value of the Indicator and Condition.
Also, you may want to consider checking if there is an active Incident from the event before creating another one.
Cheers