<?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: Extracting Date and Time of a Value within a Timeframe in Dynatrace DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/264182#M1499</link>
    <description>&lt;P&gt;that's it, thank you&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 18:24:07 GMT</pubDate>
    <dc:creator>PenteadoDouglas</dc:creator>
    <dc:date>2024-12-02T18:24:07Z</dc:date>
    <item>
      <title>Extracting Date and Time of a Value within a Timeframe in Dynatrace DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/263999#M1489</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hello, everyone! I need help creating a DQL query to extract the exact date and time of a record within a timeframe. In the example from the image, I would like to apply a filter for values &amp;gt;= 890k (but it could be any value in the filter) and capture the corresponding timestamp. In the attached screenshot, the record would be at 04:36. Currently, I’m using the following DQL as a starting point:&lt;/P&gt;&lt;P&gt;timeseries count = max(dt.service.request.count, rollup: sum)&lt;/P&gt;&lt;P&gt;Can someone guide me on how to adjust the query to meet this requirement?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Douglas Penteado&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 21:00:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/263999#M1489</guid>
      <dc:creator>PenteadoDouglas</dc:creator>
      <dc:date>2024-11-28T21:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Date and Time of a Value within a Timeframe in Dynatrace DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/264014#M1492</link>
      <description>&lt;P&gt;On my environment it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_0-1732870452930.png" style="width: 851px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24942i65E98A0BB45933F1/image-dimensions/851x249?v=v2" width="851" height="249" role="button" title="krzysztof_hoja_0-1732870452930.png" alt="krzysztof_hoja_0-1732870452930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the query to get timestamps of datapoints above certain thresholds (1800 in my example) can look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries count = max(dt.service.request.count, rollup: sum), timestamp=start()
| fieldsAdd d=record(count=count[], timestamp=timestamp[])
| fieldsAdd d = arrayRemoveNulls( iCollectArray( if(d[][count]&amp;gt;1800, d[] )))
| expand d
| fields timestamp=d[timestamp], count=d[count]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1732870544172.png" style="width: 840px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24943i9729FCEDE6F3ACC1/image-dimensions/840x252?v=v2" width="840" height="252" role="button" title="krzysztof_hoja_1-1732870544172.png" alt="krzysztof_hoja_1-1732870544172.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Iterative expressions are very useful for array processing (in this case filtering).&lt;BR /&gt;Also to get this task done you need to know timestamp for each datapoint. For this &lt;EM&gt;&lt;STRONG&gt;start()&lt;/STRONG&gt;&lt;/EM&gt; or &lt;EM&gt;&lt;STRONG&gt;end()&lt;/STRONG&gt;&lt;/EM&gt; special timeseries. are needed&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 08:57:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/264014#M1492</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-11-29T08:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Date and Time of a Value within a Timeframe in Dynatrace DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/264182#M1499</link>
      <description>&lt;P&gt;that's it, thank you&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 18:24:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Extracting-Date-and-Time-of-a-Value-within-a-Timeframe-in/m-p/264182#M1499</guid>
      <dc:creator>PenteadoDouglas</dc:creator>
      <dc:date>2024-12-02T18:24:07Z</dc:date>
    </item>
  </channel>
</rss>

