<?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 Custom event alert via code in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189047#M21493</link>
    <description>&lt;P&gt;Dear Dynatrace Team&lt;/P&gt;
&lt;P&gt;I would like to Custom event alert via code&lt;/P&gt;
&lt;P&gt;Which have requirement :&lt;/P&gt;
&lt;P&gt;1. Metric :&amp;nbsp;&amp;nbsp;builtin:service.keyRequest.response.time&lt;/P&gt;
&lt;P&gt;2. All request is &lt;STRONG&gt;key request&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. &lt;/STRONG&gt;percentile : 95&lt;/P&gt;
&lt;P&gt;4. &lt;STRONG&gt;But need to exclude only one request&lt;/STRONG&gt;(i cannot move key request from this request because will use this request to dashboard)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code for custom :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;builtin:service.keyRequest.response.time:splitBy("dt.entity.service_method"):percentile(95):auto:sort(value(percentile(95),descending))&lt;/P&gt;
&lt;P&gt;(Which this code will all service is key request to custom alert)&lt;/P&gt;
&lt;P&gt;Question&lt;/P&gt;
&lt;P&gt;1. Please provide condition code for move only one request from this custom alert&lt;/P&gt;
&lt;P&gt;such as entityName.notequals(~"/api/service/ceee~")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 14:00:57 GMT</pubDate>
    <dc:creator>chakrit</dc:creator>
    <dc:date>2022-10-19T14:00:57Z</dc:date>
    <item>
      <title>Custom event alert via code</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189047#M21493</link>
      <description>&lt;P&gt;Dear Dynatrace Team&lt;/P&gt;
&lt;P&gt;I would like to Custom event alert via code&lt;/P&gt;
&lt;P&gt;Which have requirement :&lt;/P&gt;
&lt;P&gt;1. Metric :&amp;nbsp;&amp;nbsp;builtin:service.keyRequest.response.time&lt;/P&gt;
&lt;P&gt;2. All request is &lt;STRONG&gt;key request&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. &lt;/STRONG&gt;percentile : 95&lt;/P&gt;
&lt;P&gt;4. &lt;STRONG&gt;But need to exclude only one request&lt;/STRONG&gt;(i cannot move key request from this request because will use this request to dashboard)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code for custom :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;builtin:service.keyRequest.response.time:splitBy("dt.entity.service_method"):percentile(95):auto:sort(value(percentile(95),descending))&lt;/P&gt;
&lt;P&gt;(Which this code will all service is key request to custom alert)&lt;/P&gt;
&lt;P&gt;Question&lt;/P&gt;
&lt;P&gt;1. Please provide condition code for move only one request from this custom alert&lt;/P&gt;
&lt;P&gt;such as entityName.notequals(~"/api/service/ceee~")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:00:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189047#M21493</guid>
      <dc:creator>chakrit</dc:creator>
      <dc:date>2022-10-19T14:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event alert via code</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189048#M21494</link>
      <description>&lt;P&gt;As I understand your question, you need to alert on all key requests response time 95h percentile except a single one. In this case, you need to solve it in a different way and using only include methods.&lt;BR /&gt;For example by using&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;entityName.in("name1","name2")&lt;/STRONG&gt; and specifying the requests or by tagging the services by a tag and using that tag in your filter or use the negate criterion as&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/8132"&gt;@mgome&lt;/a&gt;&amp;nbsp;advises.&lt;BR /&gt;&lt;BR /&gt;Also - are you really sure you need to have such an alert for all key requests in your environment?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 19:31:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189048#M21494</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-06-24T19:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event alert via code</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189049#M21495</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - are you really sure you need to have such an alert for all key requests in your environment?&lt;BR /&gt;= Yes&lt;/P&gt;&lt;P&gt;for solution as you provided :&lt;BR /&gt;1. using entityName.in("name1","name2") and specifying the requests.&lt;BR /&gt;= i have many request to select for custom alert which i think that would be better if can move single request. Have condition code to move only one request?&lt;/P&gt;&lt;P&gt;2. by tagging the services by a tag and using that tag in your filter.&lt;BR /&gt;= Can i use code for move single request use tag ? Please provide condition code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 07:37:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189049#M21495</guid>
      <dc:creator>chakrit</dc:creator>
      <dc:date>2022-06-24T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom event alert via code</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189132#M21502</link>
      <description>&lt;P&gt;Negation is handled by wrapping in "not".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-entities-v2-selector#negate-criterion" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-entities-v2-selector#negate-criterion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try wrapping entityName like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not(&lt;SPAN&gt;entityName.equals(~"/api/service/ceee~"))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 16:11:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Custom-event-alert-via-code/m-p/189132#M21502</guid>
      <dc:creator>mgome</dc:creator>
      <dc:date>2022-06-24T16:11:40Z</dc:date>
    </item>
  </channel>
</rss>

