<?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 Use makeTimeseries with fetch entity for Advanced DQL Time-Series Queries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Use-makeTimeseries-with-fetch-entity-for-Advanced-DQL-Time/m-p/264419#M1501</link>
    <description>&lt;P&gt;I would like a DQL statement (either in Dashboard or Notebook) to perform the following query and result in an event so that query results are alertable depending on the threshold. &amp;nbsp;In this case, I would like an event generated when DQL query results in a downtime value greater than 3600 seconds. &amp;nbsp;Here is the statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;fetch dt.entity.cloud_application_instance, from:now()-24h&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| fieldsAdd entity.name, lifetime, downtime = unixSecondsFromTimestamp(now()) - unixSecondsFromTimestamp(lifetime[start])&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| filter in(id, classicEntitySelector("type(CLOUD_APPLICATION_INSTANCE),toRelationships.IS_PG_OF_CAI(type(PROCESS_GROUP), tag(kpod))"))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| fieldsAdd duration(downtime, unit:"s"), alias:duration&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| filterOut downtime &amp;lt; 3600&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| makeTimeseries count(default: 0), spread: timeframe(from: lifetime[start], to: coalesce(lifetime[end], now())), by:{entity.name,duration}, interval: 1m&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| limit 200&lt;/SPAN&gt;| makeTimeseries count(default: 0), by:{entityName,isOffline,timestamp}, time:{timestamp}, interval: 1m&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But when I run this query, I get the following error message:&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Analyzer execution failed&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;DQL result data could not be treated as a timeseries. No valid time series records found. A valid time series record containsa single duration field, a single timeframe and one or multiple numeric arrays. Consider using the 'timeseries' or 'makeTimeseries' DQL command.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;What do I need to do to fix this DQL statement ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;| filterOut downtime &amp;lt; 3600&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 12:07:56 GMT</pubDate>
    <dc:creator>FShimaya</dc:creator>
    <dc:date>2025-12-17T12:07:56Z</dc:date>
    <item>
      <title>Use makeTimeseries with fetch entity for Advanced DQL Time-Series Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/Use-makeTimeseries-with-fetch-entity-for-Advanced-DQL-Time/m-p/264419#M1501</link>
      <description>&lt;P&gt;I would like a DQL statement (either in Dashboard or Notebook) to perform the following query and result in an event so that query results are alertable depending on the threshold. &amp;nbsp;In this case, I would like an event generated when DQL query results in a downtime value greater than 3600 seconds. &amp;nbsp;Here is the statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;fetch dt.entity.cloud_application_instance, from:now()-24h&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| fieldsAdd entity.name, lifetime, downtime = unixSecondsFromTimestamp(now()) - unixSecondsFromTimestamp(lifetime[start])&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| filter in(id, classicEntitySelector("type(CLOUD_APPLICATION_INSTANCE),toRelationships.IS_PG_OF_CAI(type(PROCESS_GROUP), tag(kpod))"))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| fieldsAdd duration(downtime, unit:"s"), alias:duration&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| filterOut downtime &amp;lt; 3600&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| makeTimeseries count(default: 0), spread: timeframe(from: lifetime[start], to: coalesce(lifetime[end], now())), by:{entity.name,duration}, interval: 1m&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;| limit 200&lt;/SPAN&gt;| makeTimeseries count(default: 0), by:{entityName,isOffline,timestamp}, time:{timestamp}, interval: 1m&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But when I run this query, I get the following error message:&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Analyzer execution failed&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;DQL result data could not be treated as a timeseries. No valid time series records found. A valid time series record containsa single duration field, a single timeframe and one or multiple numeric arrays. Consider using the 'timeseries' or 'makeTimeseries' DQL command.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;What do I need to do to fix this DQL statement ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;| filterOut downtime &amp;lt; 3600&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:07:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Use-makeTimeseries-with-fetch-entity-for-Advanced-DQL-Time/m-p/264419#M1501</guid>
      <dc:creator>FShimaya</dc:creator>
      <dc:date>2025-12-17T12:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use makeTimeseries in conjunction with fetch entity command and AI Davis</title>
      <link>https://community.dynatrace.com/t5/DQL/Use-makeTimeseries-with-fetch-entity-for-Advanced-DQL-Time/m-p/291687#M2902</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/39337"&gt;@FShimaya&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;SPAN&gt;I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you!&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what works best for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 12:07:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Use-makeTimeseries-with-fetch-entity-for-Advanced-DQL-Time/m-p/291687#M2902</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-12-17T12:07:30Z</dc:date>
    </item>
  </channel>
</rss>

