<?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: Dater Explorer Code Query - filter synthax in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214624#M1185</link>
    <description>&lt;P&gt;Ahoj&amp;nbsp;&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;I hope you are well.&lt;/P&gt;&lt;P&gt;Is it possible to combine two series in a filter? eg. :filter(and(series(avg,gt,10000000)),(series(avg,lt,11000000)))&lt;/P&gt;&lt;P&gt;I got an error message:&lt;/P&gt;&lt;P&gt;Metric selector parse error: Illegal criterion: `(series(avg,lt,11000000))`&lt;/P&gt;&lt;P&gt;I would like to list those services where the avg response time grather then 10 sec and lower then 11 sec. (10 sec time out)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 13:13:11 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2023-06-09T13:13:11Z</dc:date>
    <item>
      <title>Dater Explorer Code Query - filter synthax</title>
      <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/169258#M1183</link>
      <description>&lt;P&gt;I'm trying to "code" a metric query that would only return data points that have a certain response time and count them. If I understand the filter syntax correct then the "series" condition in the :filter transformation should allow me to do that, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;This should return the number of requests that are faster than 300ms?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:service."keyRequest".response.server:filter(series(avg,lt,300000)):splitBy():count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this gives an error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Illegal transform operator: Usage of :filter(value(...)) requires a previous value extraction.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly is meant by this error, what value extraction?&lt;/P&gt;&lt;P&gt;Does anyone have an example? I'd like to use this for an SLO definition.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:44:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/169258#M1183</guid>
      <dc:creator>r_weber</dc:creator>
      <dc:date>2021-07-14T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dater Explorer Code Query - filter synthax</title>
      <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/169290#M1184</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/35901"&gt;@r_weber&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;first I don't think you can count individual requests in metric selectors at all. These metrics selectors work on timeseries data only. For counting the individual requests, you need to use the calculated service metrics and then use the metric for SLO for example. I'd also love to have the capability to count number requests with response time condition in the SLO or custom chart without using calculated service metrics, but I don't think this will come anytime soon as it is a different source of information.&amp;nbsp; So filter transformation works on dimensions. So if a metric has multiple dimensions, you can filter on any of them.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Back to your question, you need to specify an aggregation first. So instead of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:service."keyRequest".response.server:filter(series(avg,lt,300000)):splitBy():count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need will need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:service."keyRequest".response.server:count:splitBy():filter(series(avg,lt,300000))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This will give you the number of key requests for which the average response time in the interval is less than 300000 microseconds. I'm not sure if this is the output you want.&lt;BR /&gt;&lt;BR /&gt;I believe you need the number of key requests which are faster than 300000 which is not possible without using calculated metrics.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 07:14:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/169290#M1184</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-07-15T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dater Explorer Code Query - filter synthax</title>
      <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214624#M1185</link>
      <description>&lt;P&gt;Ahoj&amp;nbsp;&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;I hope you are well.&lt;/P&gt;&lt;P&gt;Is it possible to combine two series in a filter? eg. :filter(and(series(avg,gt,10000000)),(series(avg,lt,11000000)))&lt;/P&gt;&lt;P&gt;I got an error message:&lt;/P&gt;&lt;P&gt;Metric selector parse error: Illegal criterion: `(series(avg,lt,11000000))`&lt;/P&gt;&lt;P&gt;I would like to list those services where the avg response time grather then 10 sec and lower then 11 sec. (10 sec time out)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 13:13:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214624#M1185</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2023-06-09T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dater Explorer Code Query - filter synthax</title>
      <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214667#M1186</link>
      <description>&lt;P&gt;You have the parenthesis placed incorrectly. should be:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;filter(and(series(avg,gt,10000000),series(avg,lt,11000000)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:11:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214667#M1186</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2023-06-09T22:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dater Explorer Code Query - filter synthax</title>
      <link>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214673#M1187</link>
      <description>&lt;P&gt;Ahoj&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Many thanks for your help. It works fine.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mizső&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 14:45:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dater-Explorer-Code-Query-filter-synthax/m-p/214673#M1187</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2023-06-10T14:45:19Z</dc:date>
    </item>
  </channel>
</rss>

