28 Jun 2024 07:13 PM
How can I extract processes with pending restart via API v2?
Solved! Go to Solution.
30 Jun 2024 11:22 AM
I have checked and the entity information from PGIs does not contain such information.
As such, it seems to me that the best way is to check what the values of properties.installerVersion, of both the PGI and host entities.
28 Jul 2025 12:52 PM
Late reply, but for whomever ends up here with a similar question:
Use classic API v2 "Monitored entities - Monitoring state": /monitoringstate, and type PROCESS_GROUP_INSTANCE
E.g.:
https://<your_tenant>.live.dynatrace.com/api/v2/monitoringstate?entitySelector=type(PROCESS_GROUP_INSTANCE)
See:
https://<your_tenant>.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%2...
At the same time, if somebody has a better method to obtain this information, please do share.
It is odd that it seems there is not a method to centrally create an overview of processes that are not in "ok" condition.
02 Aug 2025 08:47 PM
@fstekelenburg The API is far from effective.
For some ready-to-use solution see here https://community.dynatrace.com/t5/Dynatrace-API/Monitoring-state-API-for-process-groups-api-v2-moni... (Gen3/Notebook) or use the script attached (Managed) - it outputs a CSV, so it's easy to open it in Excel or other spreadsheet editor for filtering.