<?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 Need help to filter data according to time range in DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Need-help-to-filter-data-according-to-time-range-in-DQL/m-p/301714#M3430</link>
    <description>&lt;P&gt;timeseries terminal_up = max(httpcheck.status),&lt;BR /&gt;filter: { host.type == "terminal" and http.status_class == "2xx" },&lt;BR /&gt;by: { hostName = host.name, storeId = store.name },&lt;BR /&gt;interval: 1m&lt;BR /&gt;| fieldsAdd is_up = if(terminal_up[] &amp;gt; 0, 1, else: 0)&lt;BR /&gt;| fieldsAdd availability_pct = arrayAvg(is_up) * 100&lt;BR /&gt;| fields storeId, hostName, availability_pct&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IN THIS QUERY I WANT TO CALCULATE AVAILABILITY PERC ONLY CONSIDERING DATA BETWEEN 6AM ET TO 11PM ET HOW TO DO IT , PLEASE HELPPPPPPPPPPPPPPP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2026 19:24:09 GMT</pubDate>
    <dc:creator>ravi_singh</dc:creator>
    <dc:date>2026-07-08T19:24:09Z</dc:date>
    <item>
      <title>Need help to filter data according to time range in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-help-to-filter-data-according-to-time-range-in-DQL/m-p/301714#M3430</link>
      <description>&lt;P&gt;timeseries terminal_up = max(httpcheck.status),&lt;BR /&gt;filter: { host.type == "terminal" and http.status_class == "2xx" },&lt;BR /&gt;by: { hostName = host.name, storeId = store.name },&lt;BR /&gt;interval: 1m&lt;BR /&gt;| fieldsAdd is_up = if(terminal_up[] &amp;gt; 0, 1, else: 0)&lt;BR /&gt;| fieldsAdd availability_pct = arrayAvg(is_up) * 100&lt;BR /&gt;| fields storeId, hostName, availability_pct&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IN THIS QUERY I WANT TO CALCULATE AVAILABILITY PERC ONLY CONSIDERING DATA BETWEEN 6AM ET TO 11PM ET HOW TO DO IT , PLEASE HELPPPPPPPPPPPPPPP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 19:24:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-help-to-filter-data-according-to-time-range-in-DQL/m-p/301714#M3430</guid>
      <dc:creator>ravi_singh</dc:creator>
      <dc:date>2026-07-08T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to filter data according to time range in DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Need-help-to-filter-data-according-to-time-range-in-DQL/m-p/301724#M3431</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try to add:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from:toTimestamp("T06:00:00"), to:toTimestamp("T23:00:00")&lt;/LI-CODE&gt;&lt;P&gt;It means:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries terminal_up = max(httpcheck.status), from:toTimestamp("T06:00:00"), to:toTimestamp("T23:00:00"),
filter: { host.type == "terminal" and http.status_class == "2xx" },
by: { hostName = host.name, storeId = store.name },
interval: 1m
| fieldsAdd is_up = if(terminal_up[] &amp;gt; 0, 1, else: 0)
| fieldsAdd availability_pct = arrayAvg(is_up) * 100
| fields storeId, hostName, availability_pct&lt;/LI-CODE&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 07:56:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Need-help-to-filter-data-according-to-time-range-in-DQL/m-p/301724#M3431</guid>
      <dc:creator>AntonPineiro</dc:creator>
      <dc:date>2026-07-09T07:56:33Z</dc:date>
    </item>
  </channel>
</rss>

