<?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: DataPower Extensions metric : how to turn last response time to a response time graph in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/291185#M5553</link>
    <description>&lt;P&gt;Hi leeb,&lt;BR /&gt;to get a “positive-only” graph (show the actual last response time when there were requests, otherwise 0), use the request counter from the DataPower extension as a mask and apply element‑wise logic on the arrays returned by timeseries, I came up with the following dql:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  lastResponseTime = max(IBM.DataPower.WebService.lastResponseTime),
  requests         = sum(IBM.DataPower.WebService.totalRequests.count)
}, by: { `dt.entity.datapower:webservice`, `dt.entity.datapower:instance` }, interval: 1m
| fieldsAdd activeResponseTime = if(requests[] &amp;gt; 0, lastResponseTime[], else: 0)
| fieldsKeep `dt.entity.datapower:webservice`, `dt.entity.datapower:instance`, activeResponseTime
| sort (arrayAvg(activeResponseTime)) desc
| limit 20&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the visualization, select activeResponseTime as the series to plot.&lt;/LI&gt;&lt;LI&gt;This shows the actual response time value only in intervals that had any requests; otherwise it’s zero.&lt;/LI&gt;&lt;LI&gt;Avoids the flat line effect and the limitations of arrayDelta (which only shows changes, not actual values).&lt;/LI&gt;&lt;LI&gt;The request counter and lastResponseTime are provided by the DataPower extension and share the same entity dimensions, so they align naturally in a single timeseries call.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Let me know if it helps you!&lt;BR /&gt;Best,&lt;BR /&gt;Anderson&lt;/P&gt;</description>
    <pubDate>Wed, 10 Dec 2025 02:30:11 GMT</pubDate>
    <dc:creator>Anderson-Luna</dc:creator>
    <dc:date>2025-12-10T02:30:11Z</dc:date>
    <item>
      <title>DataPower Extensions metric : how to turn last response time to a response time graph</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/291119#M5547</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The DataPower extension provides for each webservice a "Last Response Time" metric. Rather than a long graph with the same response time line in the case there is no response in a timeframe, I wanted to turn this into a positive response time graph instead.&lt;/P&gt;&lt;P&gt;I managed to get as far as this in DQL, where I am getting a graph effectively of the delta in response time between the last response and the next one.. Is it possible to graph based off last response time, but calculate based off of response time delta?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Attached is a screenshot of the "lastResponseTime" metric and the delta graph the below DQL provides&lt;/P&gt;&lt;P&gt;I would like to actually graph the response time if it is changed but zero if it is unchanged (ie no request in that time interval)&lt;/P&gt;&lt;P&gt;DQL code for tile below :&lt;/P&gt;&lt;P&gt;timeseries lastResponseTime = max(IBM.DataPower.WebService.lastResponseTime), by: { `dt.entity.datapower:webservice`, `dt.entity.datapower:instance` }&lt;BR /&gt;| fieldsAdd array(lastResponseTime),entityName(`dt.entity.datapower:webservice`), entityName(`dt.entity.datapower:instance`), arrayDelta(lastResponseTime)&lt;BR /&gt;| sort (lastResponseTime) desc&lt;BR /&gt;| limit 20&lt;/P&gt;&lt;P&gt;When I look at the visualization tab i chose the lastResponseTime I get continuous lines for unchanged data, if I chose the arrayDelta one i am getting effectively the delta between this response time and the last one which is not the same as the actual response time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeb_0-1765281771362.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31158i596BD1FD249689AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeb_0-1765281771362.png" alt="leeb_0-1765281771362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wasnt sure if this was a DQL question or a dashboard question pertaining to visualization options so posted here.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 12:05:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/291119#M5547</guid>
      <dc:creator>leeb</dc:creator>
      <dc:date>2025-12-09T12:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: DataPower Extensions metric : how to turn last response time to a response time graph</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/291185#M5553</link>
      <description>&lt;P&gt;Hi leeb,&lt;BR /&gt;to get a “positive-only” graph (show the actual last response time when there were requests, otherwise 0), use the request counter from the DataPower extension as a mask and apply element‑wise logic on the arrays returned by timeseries, I came up with the following dql:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  lastResponseTime = max(IBM.DataPower.WebService.lastResponseTime),
  requests         = sum(IBM.DataPower.WebService.totalRequests.count)
}, by: { `dt.entity.datapower:webservice`, `dt.entity.datapower:instance` }, interval: 1m
| fieldsAdd activeResponseTime = if(requests[] &amp;gt; 0, lastResponseTime[], else: 0)
| fieldsKeep `dt.entity.datapower:webservice`, `dt.entity.datapower:instance`, activeResponseTime
| sort (arrayAvg(activeResponseTime)) desc
| limit 20&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the visualization, select activeResponseTime as the series to plot.&lt;/LI&gt;&lt;LI&gt;This shows the actual response time value only in intervals that had any requests; otherwise it’s zero.&lt;/LI&gt;&lt;LI&gt;Avoids the flat line effect and the limitations of arrayDelta (which only shows changes, not actual values).&lt;/LI&gt;&lt;LI&gt;The request counter and lastResponseTime are provided by the DataPower extension and share the same entity dimensions, so they align naturally in a single timeseries call.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Let me know if it helps you!&lt;BR /&gt;Best,&lt;BR /&gt;Anderson&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 02:30:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/291185#M5553</guid>
      <dc:creator>Anderson-Luna</dc:creator>
      <dc:date>2025-12-10T02:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: DataPower Extensions metric : how to turn last response time to a response time graph</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/295902#M5713</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I got caught on a mass migration and missed this reply.. when i try it i get No records all the while i have the requests= in the timeseries part.&amp;nbsp; Playing with it, I get the logic and it is what I was looking for, but cannot get anything except "no records".&lt;BR /&gt;If i comment out anything related to totalRequests.count the lastResponseTime part works fine. When i leave it as is i get an "i" next to the 0 Records that says "Classic entity functions are deprecated. Please use smartscape functions instead"&lt;BR /&gt;I even stripped it down to just the Requests count like this and got no results&lt;BR /&gt;timeseries {&lt;BR /&gt;requests = sum(IBM.DataPower.WebService.totalRequests.count)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;with or without the by: clause&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 11:28:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DataPower-Extensions-metric-how-to-turn-last-response-time-to-a/m-p/295902#M5713</guid>
      <dc:creator>leeb</dc:creator>
      <dc:date>2026-03-09T11:28:22Z</dc:date>
    </item>
  </channel>
</rss>

