<?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: Metric events based on a custom timeframe in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/259052#M4992</link>
    <description>&lt;P&gt;Hey qwerty,&lt;/P&gt;&lt;P&gt;Currently I don't believe there is a way to increase the analysis timeframe beyond 1h for a metric event.&amp;nbsp;To achieve what you're looking for you could do as Yosi suggested or if you're on Dynatrace SaaS you could use a workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer the questions more directly:&lt;/P&gt;&lt;P&gt;1. You would find those settings under the "advanced model properties" section as seen below. The same limitations would also currently apply to the new DQL based anomaly detectors in Dynatrace SaaS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1728862236454.png" style="width: 200px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23582i279D8AA672691CB4/image-size/small?v=v2&amp;amp;px=200" role="button" title="Fin_Ubels_0-1728862236454.png" alt="Fin_Ubels_0-1728862236454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. The above analysis window settings are set on a per metric event basis. So one could be set to evaluate a 1h period and another only a 5m period.&lt;/P&gt;&lt;P&gt;3. Not really? You could use an auto adaptive threshold but this would increase automatically and not have predefined thresholds. More info can be found here&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/auto-adaptive-threshold" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/auto-adaptive-threshold&lt;/A&gt;. To achieve a set increase in the threshold after each alert you would likely need to use a workflow or some external script that interacts with the API to change the threshold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2024 23:46:42 GMT</pubDate>
    <dc:creator>Fin_Ubels</dc:creator>
    <dc:date>2024-10-13T23:46:42Z</dc:date>
    <item>
      <title>Metric events based on a custom timeframe</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/258882#M4978</link>
      <description>&lt;P&gt;Greetings!&lt;BR /&gt;&lt;BR /&gt;I am new to Dynatrace and have been reading a lot of documentation. Hope someone can help me with this use case and clarify a few questions as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I have a metric that counts the number of failed jobs in the system, and I want to raise an alert if that metric goes above a specific threshold at a given timeframe. For example, if there are 5 failures in 3 days, raise an alert. If tomorrow, there are only 4 failures within the 3 day window, close the alert. Is this possible in Dynatrace?&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Is there a way to add a date/time filter on an event metric? I took a look at timeshift, rollup and rate functions but they don't seem to be relevant to what I need.&lt;/LI&gt;
&lt;LI&gt;Is the time window for anomaly detection is set for everything at once? Is there a way to set it for a specific metric event?&lt;/LI&gt;
&lt;LI&gt;Is there a way to increase the threshold after every alert? like 5 then 10 then 15?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 13:25:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/258882#M4978</guid>
      <dc:creator>qwerty</dc:creator>
      <dc:date>2024-10-15T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Metric events based on a custom timeframe</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/258961#M4982</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that use case is not possible, you can see &lt;A title="sliding window" href="https://docs.dynatrace.com/docs/shortlink/anomaly-detection-configuration#sliding-window" target="_blank" rel="noopener"&gt;sliding window&lt;/A&gt; for metric events.&lt;/P&gt;&lt;P&gt;But let wait another answers.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:05:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/258961#M4982</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2024-10-11T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Metric events based on a custom timeframe</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/259027#M4990</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/81801"&gt;@qwerty&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I can think of full fill your request is to create a python extension which will collect the metric (&lt;A href="https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-get-datapoints" target="_blank" rel="noopener"&gt;metric get api&lt;/A&gt;) of failed jobs over your period of time and open an event (&lt;A href="https://docs.dynatrace.com/docs/shortlink/api-events-v2-post-event" target="_blank" rel="noopener"&gt;event post api&lt;/A&gt;) when ever you decide it need to be open&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 15:34:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/259027#M4990</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2024-10-13T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Metric events based on a custom timeframe</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/259052#M4992</link>
      <description>&lt;P&gt;Hey qwerty,&lt;/P&gt;&lt;P&gt;Currently I don't believe there is a way to increase the analysis timeframe beyond 1h for a metric event.&amp;nbsp;To achieve what you're looking for you could do as Yosi suggested or if you're on Dynatrace SaaS you could use a workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer the questions more directly:&lt;/P&gt;&lt;P&gt;1. You would find those settings under the "advanced model properties" section as seen below. The same limitations would also currently apply to the new DQL based anomaly detectors in Dynatrace SaaS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin_Ubels_0-1728862236454.png" style="width: 200px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23582i279D8AA672691CB4/image-size/small?v=v2&amp;amp;px=200" role="button" title="Fin_Ubels_0-1728862236454.png" alt="Fin_Ubels_0-1728862236454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. The above analysis window settings are set on a per metric event basis. So one could be set to evaluate a 1h period and another only a 5m period.&lt;/P&gt;&lt;P&gt;3. Not really? You could use an auto adaptive threshold but this would increase automatically and not have predefined thresholds. More info can be found here&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/auto-adaptive-threshold" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/davis-ai/anomaly-detection/auto-adaptive-threshold&lt;/A&gt;. To achieve a set increase in the threshold after each alert you would likely need to use a workflow or some external script that interacts with the API to change the threshold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 23:46:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/259052#M4992</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2024-10-13T23:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Metric events based on a custom timeframe</title>
      <link>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/280228#M5732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's now possible with the new App : Davis Anomaly Detection.&lt;BR /&gt;You can use a DQL query to configure the new metric events.&lt;/P&gt;&lt;P&gt;For example, you can try this type of query :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Fetch metric.series
| filter metric.key == "Metric_name"
| makeTimeseries count(), default:0, time:YourCustomTimestamp, interval:1m, nonempty:true, by:{dt.source_entity}&lt;/LI-CODE&gt;&lt;P&gt;Please let me know if it works.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 08:34:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Metric-events-based-on-a-custom-timeframe/m-p/280228#M5732</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2025-06-26T08:34:38Z</dc:date>
    </item>
  </channel>
</rss>

