<?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: DQL - Time interval recording without data in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/240929#M762</link>
    <description>&lt;P&gt;I found it possible to do this with the MakeTimeSeries function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeTimeseries {NbCount=count(default:0)}, time:Timestamp, interval:1min
| expand NbCount
| summarize avg(NbCount)&lt;/LI-CODE&gt;&lt;P&gt;You can even use "Expand" to do additional processing (SUM, AVG, etc.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 09:11:48 GMT</pubDate>
    <dc:creator>gbaudart</dc:creator>
    <dc:date>2024-03-25T09:11:48Z</dc:date>
    <item>
      <title>DQL - Time interval recording without data</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238348#M678</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm currently working on BizEvent processing.&lt;BR /&gt;I would like to get the number of occurrences of the selected event at 1 minute intervals.&lt;/P&gt;&lt;P&gt;Here is my request:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch bizevents
| fieldsAdd event.type == "TEST"
| filter isNotNull(responsebodyfull)
| fieldsAdd Timestamp = timestamp
| parse responsebodyfull, "JSON(strict=false):json"
| expand TestServiceResponses=json[TestServiceResponses]
| parse TestServiceResponses, """LD '"correlationId":' STRING:correlationId LD '"montantEncaisse":' INTEGER:MontantEncaisse LD '"nR":' INTEGER:n LD '"n":' INTEGER:nC LD '"offre":' STRING:offre LD '"formule":' STRING:formule"""
| filterOut isNull(correlationId)
| fields Timestamp, correlationId, nR, nC, offre, montantEncaisse
| summarize count=count(), by: {`1m interval` = bin(Timestamp, 1m)}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get what I'm looking for for all the intervals where I have events. The problem is that the intervals where I don't have any data don't have the value "0". They're just not recorded...&lt;BR /&gt;But I need them, because then I'd like to average the number of events per minute. To do this, I need to count all the minutes, not just the ones with data.&lt;/P&gt;&lt;P&gt;Here's my current result, I'm missing all the data for the intervals between 5am and 5:36am:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gbaudart_0-1709109879636.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17921i2309124DD8E9863C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gbaudart_0-1709109879636.png" alt="gbaudart_0-1709109879636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:47:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238348#M678</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-02-28T08:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Time interval recording without data</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238361#M679</link>
      <description>&lt;P&gt;What about using a &lt;A href="https://docs.dynatrace.com/docs/platform-modules/business-analytics/ba-metric-extraction" target="_self"&gt;metric extraction&lt;/A&gt; and then using the &lt;A href="https://docs.dynatrace.com/docs/shortlink/explorer#default-by" target="_self"&gt;default(0)&lt;/A&gt; aggregator with the metric?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:27:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238361#M679</guid>
      <dc:creator>PacoPorro</dc:creator>
      <dc:date>2024-02-28T10:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Time interval recording without data</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238398#M681</link>
      <description>&lt;P&gt;I would like to get the information I want without creating additional metrics (which would increase our DDU consumption).&lt;BR /&gt;Isn't there a way to add the equivalent of a "default(0)" to Grail/DQL?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 13:20:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/238398#M681</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-02-28T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Time interval recording without data</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/240929#M762</link>
      <description>&lt;P&gt;I found it possible to do this with the MakeTimeSeries function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeTimeseries {NbCount=count(default:0)}, time:Timestamp, interval:1min
| expand NbCount
| summarize avg(NbCount)&lt;/LI-CODE&gt;&lt;P&gt;You can even use "Expand" to do additional processing (SUM, AVG, etc.).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 09:11:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/240929#M762</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-03-25T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: DQL - Time interval recording without data</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/240931#M763</link>
      <description>&lt;P&gt;However, this does not seem to work for time intervals of less than a minute.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 09:18:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-Time-interval-recording-without-data/m-p/240931#M763</guid>
      <dc:creator>gbaudart</dc:creator>
      <dc:date>2024-03-25T09:18:00Z</dc:date>
    </item>
  </channel>
</rss>

