<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build workflow to send SMS notification for problems detected after business hours in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/242386#M813</link>
    <description>&lt;P&gt;Just wanted to share approach I used to achieve this -&amp;nbsp;&lt;BR /&gt;1. Used Davis Problem Trigger for problems in Open or Closed state and having certain conditions like tag="abc".&lt;BR /&gt;2. Task (JavaScript) to get output of trigger check conditions for time like hour after 6 PM and weekday or weekend and call SMS API if conditions are matching.&lt;BR /&gt;&lt;BR /&gt;There are some SDKs available to get data of trigger or previous which we can use during workflow creation, but tedious task is to understand the syntax of JavaScript.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 08:13:43 GMT</pubDate>
    <dc:creator>Omkar_B</dc:creator>
    <dc:date>2024-04-11T08:13:43Z</dc:date>
    <item>
      <title>Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239473#M706</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me to build workflow for below use case :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We want Dynatrace to send SMS notification for problems generated between 18:00 To 06:00(nextDay) monday to friday if the impacted entity falls under sev1 or sev2 category.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Problem based trigger and need help to build query to filter problem where time stamp is after 18:00 or before 06:00 and day is between Monday to Friday.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 12:29:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239473#M706</guid>
      <dc:creator>Omkar_B</dc:creator>
      <dc:date>2024-03-11T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239509#M708</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Try your DQL with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;| fieldsAdd day_of_week = getDayOfWeek(timestamp), hour_of_day = getHour(timestamp)
| filter (hour_of_day &amp;gt; 18 OR hour_of_day &amp;lt; 6) AND day_of_week &amp;gt;= 1 AND day_of_week &amp;lt;= 5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:46:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239509#M708</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-03-11T14:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239524#M710</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40713"&gt;@PacoPorro&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have DQL query to fetch events with this filter but can I trigger workflow using this ? if yes, How ?&lt;BR /&gt;Do you know how can we use match phrase function in workflow ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:18:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239524#M710</guid>
      <dc:creator>Omkar_B</dc:creator>
      <dc:date>2024-03-11T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239541#M712</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41304"&gt;@Omkar_B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can achieve this in 3 steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set the trigger to every morning at 9 AM (for example)&lt;/LI&gt;&lt;LI&gt;In 2nd step add Task to execute JavaScript code. In the code you have to call APIs to fetch the problems that has come after 18:00 and within 06:00 and from their you can get the problems that has higher severity. You get the JSON as an output and that can be fed to the next step.&lt;/LI&gt;&lt;LI&gt;In the 3rd step you can use HTTP request and configure your result in such a way that in will be sent to the person based on the web hook you get from the customer and respective headers for it.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; You have to reconfigure your JSON output in 2nd step itself so that SMS messages will not be split in the 3rd step.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 02:27:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239541#M712</guid>
      <dc:creator>theharithsa</dc:creator>
      <dc:date>2024-03-18T02:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239586#M714</link>
      <description>&lt;P&gt;Use a cron trigger in the workflow as step 1, run the dql as step 2, run the SMS http request as step 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:42:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239586#M714</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-03-12T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239589#M715</link>
      <description>&lt;P&gt;Just tested the filter option, and seems to be working:&lt;/P&gt;&lt;LI-CODE lang="php"&gt; (getHour(timestamp) &amp;gt; 18 OR getHour(timestamp) &amp;lt; 6) AND getDayOfWeek(timestamp) &amp;gt;= 1 AND getDayOfWeek(timestamp) &amp;lt;= 5&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PacoPorro_0-1710244167210.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/18221i51F8A1246F80516F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PacoPorro_0-1710244167210.png" alt="PacoPorro_0-1710244167210.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:50:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239589#M715</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-03-12T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239590#M716</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/39872"&gt;@theharithsa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Why do we need to pull data via API if it is available in workflow or DQL. Can't we use those available options to achieve this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 11:52:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/239590#M716</guid>
      <dc:creator>Omkar_B</dc:creator>
      <dc:date>2024-03-12T11:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/240128#M737</link>
      <description>&lt;P&gt;You can use both, but you can't use Davis problem trigger as a task. For that, you'll need to run some JavaScript. There's a library that can fetch problems in the same tenant.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 02:31:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/240128#M737</guid>
      <dc:creator>theharithsa</dc:creator>
      <dc:date>2024-03-18T02:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/240129#M738</link>
      <description>&lt;P&gt;It is good to get the problems. Thanks &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40713"&gt;@PacoPorro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this what you were looking for &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/41304"&gt;@Omkar_B&lt;/a&gt;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 02:32:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/240129#M738</guid>
      <dc:creator>theharithsa</dc:creator>
      <dc:date>2024-03-18T02:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/242386#M813</link>
      <description>&lt;P&gt;Just wanted to share approach I used to achieve this -&amp;nbsp;&lt;BR /&gt;1. Used Davis Problem Trigger for problems in Open or Closed state and having certain conditions like tag="abc".&lt;BR /&gt;2. Task (JavaScript) to get output of trigger check conditions for time like hour after 6 PM and weekday or weekend and call SMS API if conditions are matching.&lt;BR /&gt;&lt;BR /&gt;There are some SDKs available to get data of trigger or previous which we can use during workflow creation, but tedious task is to understand the syntax of JavaScript.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 08:13:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/242386#M813</guid>
      <dc:creator>Omkar_B</dc:creator>
      <dc:date>2024-04-11T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/248405#M988</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi Omkar,&amp;nbsp;&lt;/FONT&gt;&lt;FONT&gt;I'm having a hard time understanding how to use JavaScript to get the information, could you help me by indicating which SDK you used since I'm looking to make a similar workflow and with the trigger data it would help me define my flow&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 23:35:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/248405#M988</guid>
      <dc:creator>JhonU</dc:creator>
      <dc:date>2024-06-16T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Build workflow to send SMS notification for problems detected after business hours</title>
      <link>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/258644#M1312</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/75688"&gt;@JhonU&lt;/a&gt;,&lt;BR /&gt;If you're still looking for it, here are the SDKs you can use.&lt;BR /&gt;&lt;EM&gt;@dynatrace-sdk/automation-utils&lt;/EM&gt; :- to get details from previous tasks or trigger within execution.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 02:20:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Build-workflow-to-send-SMS-notification-for-problems-detected/m-p/258644#M1312</guid>
      <dc:creator>Omkar_B</dc:creator>
      <dc:date>2024-10-09T02:20:02Z</dc:date>
    </item>
  </channel>
</rss>

