05 Nov 2024 09:21 AM - last edited on 12 Nov 2024 10:31 AM by MaciejNeumann
Hi Team,
Is there a way to fetch list of process groups and validate availability monitoring is turned on for them?
Regards,
Srikanth
05 Nov 2024 09:39 AM
You need to extract the info via the entity API.
https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2
Use the entity selector type("PROCESS_GROUP") and iterate to obtain the desired information.
05 Nov 2024 09:40 AM - edited 05 Nov 2024 09:46 AM
Hi,
You can get all process groups using entities API . You need to filter by process group.
But not sure if that API returns that flag enabled or not.
If not, another option woul be download all configuration using Monaco and finding API "builtin:availability.process-group-alerting".
Then, you can filter by "alertingMode" in all JSON files downloaded and you can find process group ID in config.yaml.
I hope someone can provide a better or more automatic way.
Best regards
Best regards