<?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 Historical data in Metric events in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Historical-data-in-Metric-events/m-p/199827#M3256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create an alert (metric event) based on the average value of a builtin metric (eg: builtin:containers.cpu.usageMilliCores) in last X days using metric selector.&lt;/P&gt;&lt;P&gt;How can time be passed into metric selector?&lt;/P&gt;&lt;P&gt;See there is an equivalent of &lt;STRONG&gt;&amp;amp;from=now-5m &lt;/STRONG&gt;in metric selector like in the API call below.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(usage,idle):filter(or(eq(%22dt.entity.host%22,%22HOST-0990886B7D39FE29%22),eq(%22dt.entity.host%22,%22HOST-0956C3557E9109C1%22)))&amp;amp;from=now-5m" target="_blank" rel="noopener"&gt;https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(usage,idle):filter(or(eq(%22dt.entity.host%22,%22HOST-0990886B7D39FE29%22),eq(%22dt.entity.host%22,%22HOST-0956C3557E9109C1%22)))&amp;amp;from=now-5m&lt;/A&gt;'&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 22:18:15 GMT</pubDate>
    <dc:creator>hv</dc:creator>
    <dc:date>2022-12-05T22:18:15Z</dc:date>
    <item>
      <title>Historical data in Metric events</title>
      <link>https://community.dynatrace.com/t5/Alerting/Historical-data-in-Metric-events/m-p/199827#M3256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to create an alert (metric event) based on the average value of a builtin metric (eg: builtin:containers.cpu.usageMilliCores) in last X days using metric selector.&lt;/P&gt;&lt;P&gt;How can time be passed into metric selector?&lt;/P&gt;&lt;P&gt;See there is an equivalent of &lt;STRONG&gt;&amp;amp;from=now-5m &lt;/STRONG&gt;in metric selector like in the API call below.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(usage,idle):filter(or(eq(%22dt.entity.host%22,%22HOST-0990886B7D39FE29%22),eq(%22dt.entity.host%22,%22HOST-0956C3557E9109C1%22)))&amp;amp;from=now-5m" target="_blank" rel="noopener"&gt;https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(usage,idle):filter(or(eq(%22dt.entity.host%22,%22HOST-0990886B7D39FE29%22),eq(%22dt.entity.host%22,%22HOST-0956C3557E9109C1%22)))&amp;amp;from=now-5m&lt;/A&gt;'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 22:18:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Historical-data-in-Metric-events/m-p/199827#M3256</guid>
      <dc:creator>hv</dc:creator>
      <dc:date>2022-12-05T22:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Historical data in Metric events</title>
      <link>https://community.dynatrace.com/t5/Alerting/Historical-data-in-Metric-events/m-p/200018#M3260</link>
      <description>&lt;P&gt;We ended up using a combination of&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;api/v2/metrics&lt;/STRONG&gt; and&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;/api/v2/events/ingest &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to check the data and alert.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 17:18:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Historical-data-in-Metric-events/m-p/200018#M3260</guid>
      <dc:creator>hv</dc:creator>
      <dc:date>2022-12-07T17:18:54Z</dc:date>
    </item>
  </channel>
</rss>

