<?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: API Metrics Query - Can you filter by value? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227655#M2750</link>
    <description>&lt;P&gt;You're looking at using &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/metric-selector#partition-syntax" target="_blank" rel="noopener"&gt;the partition transformation&lt;/A&gt; on the metric selector. With this transformation, you create a new dimension for a datapoint, which can be something like&amp;nbsp;&lt;STRONG&gt;cpuhigh&lt;/STRONG&gt; that is "yes" when the value is above 80. The rest of the datapoints will be ignored by the metric selector.&lt;/P&gt;&lt;P&gt;See my example where any datapoint below 80 is discarded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victor_balbuena_0-1699036329378.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15160i3CE15EFFB5C9E194/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor_balbuena_0-1699036329378.png" alt="victor_balbuena_0-1699036329378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 18:32:37 GMT</pubDate>
    <dc:creator>victor_balbuena</dc:creator>
    <dc:date>2023-11-03T18:32:37Z</dc:date>
    <item>
      <title>API Metrics Query - Can you filter by value?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227650#M2748</link>
      <description>&lt;P&gt;I am pulling back average CPU for a few thousand servers for 1 week. I basically get 1 entry and 1 value per server.&lt;/P&gt;&lt;P&gt;Can I filter out all entries below a certain value?&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;builtin:host.cpu.usage:names:splitBy("dt.entity.host.name"):avg:sort(value(avg,descending)):limit(10000)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I really only want anything above 80.&lt;/P&gt;&lt;P&gt;My reason is because Dynatrace is cutting me off with a warning:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dynatrace-warning: Metric data is missing from the result! The query was limited to 10&amp;nbsp;000&amp;nbsp;000 data points.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any advice is appreciated.&lt;/P&gt;&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:06:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227650#M2748</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2023-11-03T18:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: API Metrics Query - Can you filter by value?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227655#M2750</link>
      <description>&lt;P&gt;You're looking at using &lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/metric-selector#partition-syntax" target="_blank" rel="noopener"&gt;the partition transformation&lt;/A&gt; on the metric selector. With this transformation, you create a new dimension for a datapoint, which can be something like&amp;nbsp;&lt;STRONG&gt;cpuhigh&lt;/STRONG&gt; that is "yes" when the value is above 80. The rest of the datapoints will be ignored by the metric selector.&lt;/P&gt;&lt;P&gt;See my example where any datapoint below 80 is discarded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victor_balbuena_0-1699036329378.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15160i3CE15EFFB5C9E194/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victor_balbuena_0-1699036329378.png" alt="victor_balbuena_0-1699036329378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:32:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227655#M2750</guid>
      <dc:creator>victor_balbuena</dc:creator>
      <dc:date>2023-11-03T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: API Metrics Query - Can you filter by value?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227664#M2751</link>
      <description>&lt;P&gt;Thank you Victor, I will give this a try.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 21:32:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/API-Metrics-Query-Can-you-filter-by-value/m-p/227664#M2751</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2023-11-03T21:32:56Z</dc:date>
    </item>
  </channel>
</rss>

