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

Dynatrace Environment API - Dynamic Filtering

mrd07820
Newcomer

I am quite new to the Dynatrace environment and trying my hand at building a query.

I am in the Dynatrace Environment API V2.0 (https://{environmentid}.live.dynatrace.com/rest-api-doc/index.jsp?urls.primaryName=Environment%20API%20v2#/) trying to build a query under 'Settings - Objects' using the SchemaIds 'builtin:alerting.maintenance-window'. I need to filter the output such that I receive only those data fields for which value.schedule.onceRecurrence.startTime or value.schedule.onceRecurrence.endTime are in the last 10 minutes.

When I enter a value manually it executes but it is not working with something like value.schedule.onceRecurrence.startTime = now-9m.

Is the syntax supposed to be different or dynamic filtering is not supported at all on this interface?

1 REPLY 1

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

I think those filters cannot be applied in GET request itself. You can make a GET request from here:

AntonPineiro_0-1723787347870.png

And later, post processing to filter objects base on your criteria.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Featured Posts