15 Aug 2024 12:18 PM - last edited on 21 Aug 2024 01:51 PM by MaciejNeumann
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?
Solved! Go to Solution.
16 Aug 2024 06:50 AM
Hi,
I think those filters cannot be applied in GET request itself. You can make a GET request from here:
And later, post processing to filter objects base on your criteria.
Best regards