<?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 How to get process availability using DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277584#M2110</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;I need help to built DQL to&amp;nbsp; get process&amp;nbsp; availability in % , Can somebody please help on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Heramb Sawant&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 12:52:46 GMT</pubDate>
    <dc:creator>heramb_sawant</dc:creator>
    <dc:date>2025-05-20T12:52:46Z</dc:date>
    <item>
      <title>How to get process availability using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277584#M2110</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;I need help to built DQL to&amp;nbsp; get process&amp;nbsp; availability in % , Can somebody please help on this.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Heramb Sawant&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 12:52:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277584#M2110</guid>
      <dc:creator>heramb_sawant</dc:creator>
      <dc:date>2025-05-20T12:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get process availability using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277612#M2113</link>
      <description>&lt;P&gt;It requires getting all timeseries of availability state for process (in my example for process_group) and then calculating percentage of existence of availability state vs all states.&lt;/P&gt;&lt;P&gt;In my sample case 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-1747756931613.png" style="width: 856px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28095i02049A2D61E2B339/image-dimensions/856x323?v=v2" width="856" height="323" role="button" title="krzysztof_hoja_0-1747756931613.png" alt="krzysztof_hoja_0-1747756931613.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries availability=sum(dt.process.availability), by:{availability.state, dt.entity.process_group}
, filter:in(dt.entity.process_group, {"PROCESS_GROUP-0517A6E81E811092"})
, interval:5m
| summarize { availability = 100*sum(if(availability.state=="available",availability[])) / sum(availability[])}, 
by: {interval, timeframe, dt.entity.process_group}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by executing this query you can look at the data behind:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries availability=sum(dt.process.availability), by:{availability.state, dt.entity.process_group, dt.entity.process_group_instance}
, filter:in(dt.entity.process_group, {"PROCESS_GROUP-0517A6E81E811092"})
, interval:5m&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krzysztof_hoja_1-1747757099116.png" style="width: 848px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28096iD636BC3818393041/image-dimensions/848x301?v=v2" width="848" height="301" role="button" title="krzysztof_hoja_1-1747757099116.png" alt="krzysztof_hoja_1-1747757099116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;there are 2 PGIs over time and at certain moment 2 of them become unavailable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 16:06:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277612#M2113</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-05-20T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get process availability using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277647#M2118</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/25373"&gt;@krzysztof_hoja&lt;/a&gt;&amp;nbsp;&amp;nbsp;top answer! every time your answers go into my bookmarks!&lt;BR /&gt;Just a quick note because until recently I didn't know it was possible to use a conditional function inside an aggregation function, until I tried it and hoped it would work.&lt;BR /&gt;Looking at the documentation, there's no such example and there's a countif() function while there's no sumif() or anything else. So it would be nice to have more examples of how to do conditional aggregations in the documentation. I've also recently had the same thought about the iCollectArray function, which is very powerful but not well reflected in the documentation because there aren't enough examples of its use.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:09:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277647#M2118</guid>
      <dc:creator>GerardJ</dc:creator>
      <dc:date>2025-05-21T07:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get process availability using DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277649#M2119</link>
      <description>&lt;P&gt;I agree! Doc should contain more examples&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:26:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-get-process-availability-using-DQL/m-p/277649#M2119</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2025-05-21T07:26:21Z</dc:date>
    </item>
  </channel>
</rss>

