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

Help with filter please - API

CrazyHarry
Visitor

I am really stuck - Trying to create a  filter for :

dt.entity.cloud_application

This is the query that I'm trying to apply the filter for cloud application to. This query returns all apps within a management zone. Trying to filter by a single app or a list of apps.

url = 'https://xxxxxx/e/xxxxx/api/v2/metrics/query?metricSelector=' \
'(builtin:kubernetes.pods:last:splitBy("dt.entity.cloud_application"):sum:sort(value(avg,descending))):' \
'names:fold(auto)&from=1739297079132&to=1739304279132&mzName=mzId(MBF)'
Can someone please provide me with the proper syntax for this API request?

 

2 REPLIES 2

PacoPorro
Dynatrace Leader
Dynatrace Leader

try  without quotes


https://xxxxxx/e/xxxxx/api/v2/metrics/query?metricSelector=(builtin:kubernetes.pods:last:splitBy("dt.entity.cloud_application"):sum:sort(value(avg,descending))):names:fold(auto)&from=1739297079132&to=1739304279132&mzName=mzId(MBF)

Sorry about that, my question wasn't clear.  I fixed that.   What I'm looking for is a query where I can specify one or more apps.

Featured Posts