cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Querying Processes with Pending Restart via API V2

crowngy
Frequent Guest

How can I extract processes with pending restart via API v2?

3 REPLIES 3

AntonioSousa
DynaMight Guru
DynaMight Guru

@crowngy,

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.

Antonio Sousa

fstekelenburg
DynaMight Pro
DynaMight Pro

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.

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | Cegeka.com, Dynatrace Partner

@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.


Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts