selection criteria for alerts in API call to https://api.ca.prismacloud.io/v2/alert

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

selection criteria for alerts in API call to https://api.ca.prismacloud.io/v2/alert

L0 Member

Hi,

   I'm using a call to CSPM Prisma API https://api.ca.prismacloud.io/v2/alert to get changes happened to alerts withing specific time range. For that absolute timeRange filter is used in call parayers with specific stratTime and endTime values set as described in API documentation here https://pan.dev/prisma-cloud/api/cspm/post-alerts-v-2/. In general, the call works and returns a list of alerts with details. But I discovered that all of the alerts I get in the result data set are in status 'open' unless the alert was both opened and closed (dismissed, resolved) within the specified timeRange. In case when the alert was opened before the timeRange and resolved within timeRange it is not included in the result set. Is it expected behavior? Can it be altered to get all alerts that changed the status within timeRange by some call parameters or alert configuration?

 

Kind regards,

Sergii

1 REPLY 1

L2 Linker

Hi Sergii,

At a first look, this sounds like the expected behavior, to us a "change" means going from {never opened,open} to {dismissed,snoozed,resolved} within a time interval.

However, let me take a closer look, can you reply with an example of retrieved alerts that demonstrate the problem, together with the query parameters you used?

Helping protect our customers' digital way of life.
  • 946 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!