How can I extract processes with pending restart via API v2?
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.
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)
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.
@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-monitoringstate/m-p/279821/highlight/true#M3792 (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.
checkRestarts.zip (1.62 KB)