<?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: RUM DQL Queries in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303073#M3460</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3393"&gt;@Tommaso_Fin&lt;/a&gt;&amp;nbsp;, Thank you for the response, this table does not have data what i am looking for.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2026 08:55:28 GMT</pubDate>
    <dc:creator>Ganeshmete77</dc:creator>
    <dc:date>2026-08-11T08:55:28Z</dc:date>
    <item>
      <title>RUM DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/302931#M3453</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;i have below user session queries, i am looking for similar queries in DQL.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"userActionDuration" : f'SELECT AVG(useraction.duration),useraction.name FROM usersession WHERE userType="REAL_USER" AND userevent.pageGroup="{pageGroup}" GROUP BY useraction.name'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"visuallyCompleteTime" : f'SELECT AVG(useraction.visuallyCompleteTime),useraction.name FROM usersession WHERE userType="REAL_USER" AND userevent.pageGroup="{pageGroup}" GROUP BY useraction.name'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;"documentInteractiveTime" : f'SELECT AVG(useraction.documentInteractiveTime),useraction.name FROM usersession WHERE userType="REAL_USER" AND userevent.pageGroup="{pageGroup}" GROUP BY useraction.name'&lt;BR /&gt;&lt;BR /&gt;Please help me with these DQL queries or share me any related document for reference.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2026 13:11:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/302931#M3453</guid>
      <dc:creator>Ganeshmete77</dc:creator>
      <dc:date>2026-08-06T13:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: RUM DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/302956#M3454</link>
      <description>&lt;P&gt;Hi, you could start from something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch user.events&lt;BR /&gt;| filter isNotNull(user_action.id)&lt;BR /&gt;| filter dt.rum.user_type == "real_user"&lt;BR /&gt;| summarize avg(duration), by:{user_action.id, user_action.name}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the new duration metrics you can check here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/knowledge-base/core-web-vitals/" target="_blank"&gt;https://www.dynatrace.com/knowledge-base/core-web-vitals/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2026 06:10:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/302956#M3454</guid>
      <dc:creator>Tommaso_Fin</dc:creator>
      <dc:date>2026-08-07T06:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: RUM DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303073#M3460</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3393"&gt;@Tommaso_Fin&lt;/a&gt;&amp;nbsp;, Thank you for the response, this table does not have data what i am looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2026 08:55:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303073#M3460</guid>
      <dc:creator>Ganeshmete77</dc:creator>
      <dc:date>2026-08-11T08:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: RUM DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303074#M3461</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;For the duration, it would look something like this:&lt;/P&gt;&lt;PRE&gt;fetch user.events
| filter dt.rum.user_type == "real_user"
| fields duration, dt.rum.user_type, view.name, view.url.full
| summarize avg(duration), by:{view.name, view.url.full}&lt;/PRE&gt;&lt;P&gt;That said, based on my own experience, the whole new RUM experience still has quite a few gaps and inconsistencies that make it difficult to use in many cases.&lt;/P&gt;&lt;P&gt;The data is also not live and can have significant delays. Sessions first need to end, and even then, the data can take up to &lt;STRONG&gt;35 minutes&lt;/STRONG&gt; to become available.&lt;/P&gt;&lt;P&gt;For example, if a normal user starts working at 08:30, works until 12:00, takes a break until 13:00, and then works until 17:00, I might only see their first actions from 08:30 around 12:35.&lt;/P&gt;&lt;P&gt;If they encounter an issue during their session, we would have to wait until they finish their session and then another ~35 minutes before we can investigate it. In the example above, that means potentially waiting until around 17:35 — or simply looking at the data the next day.&lt;/P&gt;&lt;P&gt;So for investigating issues with &lt;STRONG&gt;today's sessions&lt;/STRONG&gt;, the new RUM is currently not very practical.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;visually complete time&lt;/STRONG&gt;, I haven't been able to find a working metric myself.&lt;/P&gt;&lt;P&gt;documentInteractiveTime looks like it should correspond to performance.dom_interactive, but that one doesn't seem to work for me. Maybe you'll have more luck with it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; page.groups doesn't seem to exist anymore(or Can't find them).&lt;/P&gt;&lt;P&gt;Also, keep in mind that any &lt;STRONG&gt;action naming rules&lt;/STRONG&gt; you configured in Dynatrace settings won't be available in the new RUM. To use action Naming rules/clean names you will need to do this in application source code.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2026 09:39:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303074#M3461</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-08-11T09:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: RUM DQL Queries</title>
      <link>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303110#M3463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19639"&gt;@dylan_taelemans&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for responding. I tried below in the notebook it is giving me the required details.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { metricsClient } from '@dynatrace-sdk/client-classic-environment-v2';

export default async function () {

  const metrics = {
    visuallyComplete:
      'builtin:apps.web.action.visuallyComplete.load.browser:splitBy("dt.entity.application_method"):names',

    lcp:
      'builtin:apps.web.action.largestContentfulPaint.load.browser:splitBy("dt.entity.application_method"):names',

    fid:
      'builtin:apps.web.action.firstInputDelay.load.browser:splitBy("dt.entity.application_method"):names',

    firstByte:
      'builtin:apps.web.action.firstByte.load.browser:splitBy("dt.entity.application_method"):names'
  };

  try {

    const [
      visuallyCompleteData,
      lcpData,
      fidData,
      firstByteData
    ] = await Promise.all([
      metricsClient.query({
        metricSelector: metrics.visuallyComplete,
        from: '-30d',
        to: 'now',
        acceptType: 'application/json'
      }),
      metricsClient.query({
        metricSelector: metrics.lcp,
        from: '-30d',
        to: 'now',
        acceptType: 'application/json'
      }),
      metricsClient.query({
        metricSelector: metrics.fid,
        from: '-30d',
        to: 'now',
        acceptType: 'application/json'
      }),
      metricsClient.query({
        metricSelector: metrics.firstByte,
        from: '-30d',
        to: 'now',
        acceptType: 'application/json'
      })
    ]);

    const rowsMap = new Map&amp;lt;string, any&amp;gt;();

    const addMetric = (
      data: any,
      columnName: string
    ) =&amp;gt; {

      const series = data.result?.[0]?.data ?? [];

      series.forEach((item: any) =&amp;gt; {

        const methodId =
          item.dimensionMap?.['dt.entity.application_method'];

        const pageName =
          item.dimensionMap?.['dt.entity.application_method.name'] ??
          methodId;

        const value =
          item.values?.find(
            (v: number | null) =&amp;gt; v != null
          ) ?? 0;

        if (!rowsMap.has(methodId)) {
          rowsMap.set(methodId, {
            PageName: pageName
          });
        }

        rowsMap.get(methodId)[columnName] =
          Math.round(value);
      });
    };

    addMetric(
      visuallyCompleteData,
      'VisuallyCompleteMs'
    );

    addMetric(
      lcpData,
      'LargestContentfulPaintMs'
    );

    addMetric(
      fidData,
      'FirstInputDelayMs'
    );

    addMetric(
      firstByteData,
      'FirstByteMs'
    );

    const rows = [];

for (const row of rowsMap.values()) {

  const vcScore = rateMetric(
    row.VisuallyCompleteMs ?? 0,
    5000,
    10000
  );

  const lcpScore = rateMetric(
    row.LargestContentfulPaintMs ?? 0,
    2500,
    4000
  );

  const ttfbScore = rateMetric(
    row.FirstByteMs ?? 0,
    800,
    1800
  );

  const fidScore = rateMetric(
    row.FirstInputDelayMs ?? 0,
    100,
    300
  );

  const totalScore =
    (vcScore * 0.4) +
    (lcpScore * 0.3) +
    (ttfbScore * 0.2) +
    (fidScore * 0.1);

  let pagePerformance = 'Poor';

  if (totalScore &amp;gt;= 1.5) {
    pagePerformance = 'Good';
  } else if (totalScore &amp;gt;= 0.8) {
    pagePerformance = 'Tolerated';
  }

  row.PagePerformance = pagePerformance;

  rows.push(row);
}

return rows.sort(
  (a, b) =&amp;gt;
    (b.VisuallyCompleteMs || 0) -
    (a.VisuallyCompleteMs || 0)
);

  } catch (error) {
    return `🚫 Error: ${error}`;
  }
}

function rateMetric(
  value: number,
  goodThreshold: number,
  toleratedThreshold: number
) {
  if (value &amp;lt;= goodThreshold) return 2;
  if (value &amp;lt;= toleratedThreshold) return 1;
  return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2026 16:46:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/RUM-DQL-Queries/m-p/303110#M3463</guid>
      <dc:creator>Ganeshmete77</dc:creator>
      <dc:date>2026-08-11T16:46:08Z</dc:date>
    </item>
  </channel>
</rss>

