<?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: Calculate a succes rate line with metrics in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299146#M3332</link>
    <description>&lt;P&gt;that's perfect thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2026 06:46:06 GMT</pubDate>
    <dc:creator>enrico_afkl</dc:creator>
    <dc:date>2026-05-07T06:46:06Z</dc:date>
    <item>
      <title>Calculate a succes rate line with metrics</title>
      <link>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299122#M3330</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'd like to calculate a ratio between totalCalls and successCalls using a metric "log.prgoffer.foapi.baminfo.golden.exceptions".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;timeseries totalCalls=sum(log.prgoffer.foapi.baminfo.golden.exceptions),&lt;BR /&gt;interval:&lt;BR /&gt;duration(toLong(substring($Interval,from:0,to:stringLength($Interval)-1)),&lt;BR /&gt;unit:getCharacter($Interval,stringLength($Interval)-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;timeseries successCalls=sum(log.prgoffer.foapi.baminfo.golden.exceptions),&lt;/P&gt;
&lt;P&gt;filter: {&lt;BR /&gt;matchesValue(baminfo.exception, "OK")&lt;BR /&gt;},&lt;BR /&gt;interval:&lt;BR /&gt;duration(toLong(substring($Interval,from:0,to:stringLength($Interval)-1)),&lt;BR /&gt;unit:getCharacter($Interval,stringLength($Interval)-1))&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 11:25:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299122#M3330</guid>
      <dc:creator>enrico_afkl</dc:creator>
      <dc:date>2026-05-11T11:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a succes rate line with metrics</title>
      <link>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299126#M3331</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/98941"&gt;@enrico_afkl&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;You can try this one:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;timeseries {
  totalCalls = sum(log.prgoffer.foapi.baminfo.golden.exceptions),

  successCalls = sum(
    log.prgoffer.foapi.baminfo.golden.exceptions,
    filter: matchesValue(baminfo.exception, "OK")
  )
},
interval: duration(
  toLong(substring($Interval, from: 0, to: stringLength($Interval) - 1)),
  unit: getCharacter($Interval, stringLength($Interval) - 1)
)
| fieldsAdd
    successRatio = successCalls[] / totalCalls[] * 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2026 16:30:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299126#M3331</guid>
      <dc:creator>MaximilianoML</dc:creator>
      <dc:date>2026-05-06T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a succes rate line with metrics</title>
      <link>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299146#M3332</link>
      <description>&lt;P&gt;that's perfect thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 06:46:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Calculate-a-succes-rate-line-with-metrics/m-p/299146#M3332</guid>
      <dc:creator>enrico_afkl</dc:creator>
      <dc:date>2026-05-07T06:46:06Z</dc:date>
    </item>
  </channel>
</rss>

