- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-25-2023 10:06 AM
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
07-31-2023 07:43 AM
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?
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!