In an effort to pull the alerts for a process including the environmental specific factors (exposed, first seen for this process, data ) we have to do the following:
Pull all the alerts with the query parameter affectedPgNameContains using “GET all problems”
iterate over all the results to get the specifics for a process - using multiple other calls to "GET problem events"
A process that is not practical to scale !!
Is there a single API call that returns the alerts for a specific process ?
Ex. Get security alerts for affectedPgNameContains='something ’
Unfortunately this does not help, codeanalysis is not of concern. and riskAssessment: A risk assessment of the security problem not specific to the process.
The only workaround is the iteration, but it is very api calls intensive to be used for automation, we need a new endpoint that directly provide the result.
OK I understand.
Personnaly, I often iterate easily a lot of entities on more than 1500 Hosts with ansible jobs for a client environment to automatically switch hosts from full stack monitoring to infra-only based on process group technologies detected on hosts. And it works like a charm.