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

Use DQL query within Problem trigger to Teams Workflow

Hillman
Helper

As the mobile app will soon be end-of-support, I am now testing the workflow that send notification to Teams whenever there are problems being triggered.

However, I do not want to send every problem alerts to Teams. Only those which have Alert Profiles other than Default one assigned will be sent to Teams.

I have constructed a DQL query to do the filter. However, the workflow UI does not allow me to add custom DQL query. It only allows partial DQL filter input.

Hillman_0-1779078129692.png

Is there any way I can use the DQL to do the filtering in Problem triggers?

 

2 REPLIES 2

gbaudart
DynaMight Champion
DynaMight Champion

Hi,

You can use the "Additional Custom filter" in the Problem Trigger like this :

gbaudart_0-1779102585690.png

Let me know if it's work 😉

 

 

Dynatrace Partner - Professional Certified - DynaMight

@gbaudart However, the custom filter does not fully cover my use case.

I want to filter out the problems which does not have alert profile assigned and those assigned with "Default" profile only. This involves Array to string conversion (to change the alert profiles array to string), string replacement (to remove the Default profile) and can only be done by full DQL.

Featured Posts