Export OneAgent Health Data Using DQL Queries

Hi,

Is it possible to get the results of Oneagent Health on a DQL query?

I mean this page:
OneAgent health overview — Dynatrace Docs

I found that the Env V2 API, monitoringstate does it. (Correct me if wrong)

For some reason, this API returns even healthy entities, even though I set the entitySelector like:

type("PROCESS_GROUP_INSTANCE"),healthState("UNHEALTHY")

Maybe am querying the API wrongly.

Let me know if its possible on DQL.

Regards,
Vishnu

can anyone help me with this query?

In case anyone looking for same info, there is option to export the data at the bottom of the page.
Looks like:

Only allowed 1000 entries, so had to add filters to reduce the count and then export

Thank you for sharing your solution with the rest of our Community, @vishnu_kumar! :blush: