<?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: classic entity to smartscape functions conversion in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296141#M5718</link>
    <description>&lt;P&gt;Hi, you can at least simplify the query and remove the need for classicEntitySelector(...) by filtering directly on the service name:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  count = sum(
    dt.service.request.count,
    scalar: true,
    filter: {
      entityName(dt.entity.service) == "serviceA - Site 1"
      OR
      entityName(dt.entity.service) == "serviceA - Site 2"
    }
  )
}&lt;/LI-CODE&gt;&lt;P&gt;This keeps the same logic and is much easier to read.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scalar.jpg" style="width: 540px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/32348iFDB29EFB36B726CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="scalar.jpg" alt="scalar.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;That said, it still uses dt.entity.service, so it may not fully remove the deprecation warning. From what I can see, Smartscape is the target model, but for this specific metric/filter combination there doesn’t seem to be a clean 1:1 replacement yet. Smartscape entities expose both id and id_classic, which suggests some service metrics still rely on the classic entity dimension today.&amp;nbsp;So the simplified version above is probably the most practical option for now, even if the warning remains.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2026 14:06:10 GMT</pubDate>
    <dc:creator>t_pawlak</dc:creator>
    <dc:date>2026-03-13T14:06:10Z</dc:date>
    <item>
      <title>classic entity to smartscape functions conversion</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/295927#M5714</link>
      <description>&lt;LI-CODE lang="markup"&gt;timeseries {
    count = sum(
        dt.service.request.count,
        scalar: true,
        filter: {
            (
                in(
                    dt.entity.service,
                    classicEntitySelector(
                        "type(service),entityName.equals(\"serviceA - Site 1\")"
                    )
                )
            )
            OR
            (
                in(
                    dt.entity.service,
                    classicEntitySelector(
                        "type(service),entityName.equals(\"serviceA - Site 2\")"
                    )
                )
            )
        }
    )}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Until now i was using the above DQL to get the count of requests for a particular services and show it on the dashboard. But now i am getting a warning&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Classic entity functions are deprecated. Please use Smartscape functions instead.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The dt.entity.* fields are deprecated. Please use dt.smartscape.*.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me get the count as per new standards so that i don't get this warning on my dashboard&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 15:47:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/295927#M5714</guid>
      <dc:creator>R928492</dc:creator>
      <dc:date>2026-03-09T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: classic entity to smartscape functions conversion</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296141#M5718</link>
      <description>&lt;P&gt;Hi, you can at least simplify the query and remove the need for classicEntitySelector(...) by filtering directly on the service name:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  count = sum(
    dt.service.request.count,
    scalar: true,
    filter: {
      entityName(dt.entity.service) == "serviceA - Site 1"
      OR
      entityName(dt.entity.service) == "serviceA - Site 2"
    }
  )
}&lt;/LI-CODE&gt;&lt;P&gt;This keeps the same logic and is much easier to read.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scalar.jpg" style="width: 540px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/32348iFDB29EFB36B726CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="scalar.jpg" alt="scalar.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;That said, it still uses dt.entity.service, so it may not fully remove the deprecation warning. From what I can see, Smartscape is the target model, but for this specific metric/filter combination there doesn’t seem to be a clean 1:1 replacement yet. Smartscape entities expose both id and id_classic, which suggests some service metrics still rely on the classic entity dimension today.&amp;nbsp;So the simplified version above is probably the most practical option for now, even if the warning remains.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 14:06:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296141#M5718</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-03-13T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: classic entity to smartscape functions conversion</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296143#M5719</link>
      <description>&lt;P&gt;Thanks for the suggestion on simplifying the query . Will rely on this for now while exploring a better option with no warnings.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 14:14:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296143#M5719</guid>
      <dc:creator>R928492</dc:creator>
      <dc:date>2026-03-13T14:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: classic entity to smartscape functions conversion</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296149#M5720</link>
      <description>&lt;P&gt;yeah,&lt;BR /&gt;I tried a Smartscape-based approach as well, for example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;smartscapeNodes "SERVICE"
| filter name == "astroshop-frontend" or name == "CustomerFrontendREST"
| fields name, id_classic
| join [
    timeseries count = sum(dt.service.request.count), by:{dt.entity.service}
  ],
  on: { left[id_classic] == right[dt.entity.service] },
  fields: { count = count }
| fields name, count&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And I recived this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smart_metrics.jpg" style="width: 688px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/32351i79C3C21CA9255B45/image-size/large?v=v2&amp;amp;px=999" role="button" title="smart_metrics.jpg" alt="smart_metrics.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;It works, but it still relies on dt.entity.service on the metric side, so the warning remains.&lt;BR /&gt;That makes me think the metric dimension for dt.service.request.count is still tied to the classic entity model, even if Smartscape can already be used to resolve the services. Dynatrace documents Smartscape nodes with both id and id_classic, which suggests this kind of bridge is still needed in some cases.&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/smartscape-on-grail" target="_blank"&gt;Smartscape on Grail&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;So at least for now, a pure Smartscape-only rewrite does not seem to be available for this specific metric/filter combination.&lt;BR /&gt;Because of that, the simplified version with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;entityName(dt.entity.service) == ...&lt;/LI-CODE&gt;&lt;P&gt;is probably still the most practical option, even if the warning stays&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 14:38:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/classic-entity-to-smartscape-functions-conversion/m-p/296149#M5720</guid>
      <dc:creator>t_pawlak</dc:creator>
      <dc:date>2026-03-13T14:38:48Z</dc:date>
    </item>
  </channel>
</rss>

