DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Looking for DQL to discover maintenance window settings

rseibert1
Contributor

Not seeing an ability to query DQL for the maintenance windows that are currently active, besides which entities the window effects. We currently have a workflow that creates new windows but does not activate them (user triggered) so observability team can verify the window looks good and then just through the slider to Active. The trouble with that is I see no way to query to verify this action had taken place. 

2 REPLIES 2

p_devulapalli
Leader

@rseibert1 Can you try the below DQL ?

Take a look at the "details.json_before" and "details.json_after" fields . These would have the info you are after

Hope this helps 

fetch dt.system.events
| filter event.kind == "AUDIT_EVENT"
  and event.provider == "SETTINGS"
  and matchesPhrase(details.dt.settings.schema_id, "builtin:alerting.maintenance-window")

 

Phani Devulapalli

Thanks for this insight, I knew there had to be a way!

Featured Posts