18 Oct 2022
07:15 AM
- last edited on
19 Oct 2022
04:06 AM
by
MaciejNeumann
In the Dynatrace V2 Metrics API, I have a few questions:
1) Can I set a time limit up for a DT V2 API query, or do I need to do that programmatically in my scripting? I ask because I would like it to timeout if a query is trying too hard or trying to return too much data.
2) Can I limit the amount of data that my API query will pull back? Once in a while, a query will return a huge amount of data.
3) Can I exclude certain data? For instance, when I pull disk data for a server, once in a while, I pull back an entity with thousands of disks from containers. I'd like to try and limit that in the query.
Any advice would be greatly appreciated.
Lou
Solved! Go to Solution.
Hi @louis_gallo
builtin:host.disk.free:filter(and(or(in("dt.entity.disk",entitySelector("type(disk),entityName.equals(~"/var/vcap/store~")"))))):splitBy("dt.entity.disk")
Hope this helps.
Best,
Mark
Featured Posts