<?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: Total time for a dimension regarding the timeseries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274537#M1912</link>
    <description>&lt;P&gt;Hi Yanezza, thanks for your suggestion, I made the DQL query after my post finally, I forgot to close, thanks for your suggestion I created this query :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;timeseries by:{service}, filter:status == $Statut, health = avg(office365.tenant.service.health)&lt;BR /&gt;| fieldsAdd health = arrayRemoveNulls(health)&lt;BR /&gt;| fieldsAdd total_time = toDuration(timeframe)&lt;BR /&gt;| filter isNotNull(total_time)&lt;BR /&gt;| fieldsAdd arraySize(health)&lt;BR /&gt;| fieldsAdd TempsduStatut=(`arraySize(health)`*interval)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 08:14:27 GMT</pubDate>
    <dc:creator>Sullivan</dc:creator>
    <dc:date>2025-04-07T08:14:27Z</dc:date>
    <item>
      <title>Total time for a dimension regarding the timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274168#M1886</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I want to retrieve the total time of a time series for each service in order to produce a monthly report on the total degradation time per service.&lt;/P&gt;&lt;P&gt;Basic DQL query:&lt;/P&gt;&lt;P&gt;timeseries interval : 1h, health = avg(office365.tenant.service.health, filter : { status == ‘ serviceDegradation ’ }), by : { service }&lt;/P&gt;&lt;P&gt;Do you have any ideas on how to do this please?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 09:21:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274168#M1886</guid>
      <dc:creator>Sullivan</dc:creator>
      <dc:date>2025-04-02T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Total time for a dimension regarding the timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274488#M1911</link>
      <description>&lt;P&gt;Are you meaning like this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;timeseries by:{service}, filter:status == "serviceDegradation", interval:1h, timeframe:timeframe(from:now() - 30d, to:now()), health = avg(office365.tenant.service.health)
| fieldsAdd total_degradation_time = arraySum(health)&lt;/LI-CODE&gt;&lt;P&gt;you can remove the timeframe if you will set it in the notebook section.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Apr 2025 20:32:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274488#M1911</guid>
      <dc:creator>yanezza</dc:creator>
      <dc:date>2025-04-05T20:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Total time for a dimension regarding the timeseries</title>
      <link>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274537#M1912</link>
      <description>&lt;P&gt;Hi Yanezza, thanks for your suggestion, I made the DQL query after my post finally, I forgot to close, thanks for your suggestion I created this query :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;timeseries by:{service}, filter:status == $Statut, health = avg(office365.tenant.service.health)&lt;BR /&gt;| fieldsAdd health = arrayRemoveNulls(health)&lt;BR /&gt;| fieldsAdd total_time = toDuration(timeframe)&lt;BR /&gt;| filter isNotNull(total_time)&lt;BR /&gt;| fieldsAdd arraySize(health)&lt;BR /&gt;| fieldsAdd TempsduStatut=(`arraySize(health)`*interval)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 08:14:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Total-time-for-a-dimension-regarding-the-timeseries/m-p/274537#M1912</guid>
      <dc:creator>Sullivan</dc:creator>
      <dc:date>2025-04-07T08:14:27Z</dc:date>
    </item>
  </channel>
</rss>

