<?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: Is monitoredEntitiesClient.getEntities() segments aware? in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285931#M1542</link>
    <description>&lt;P&gt;Hi Sini,&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;For my first use-case (simple HOST based query), this would work perfectly (and I will implement it in the coming days), however this is harder for my other use-cases, where I don't know upfront which entity types will be requested by the customer. Customer is able to set the type manually (e.g. "HOST", "SERVICE", but also custom (device sub-)types e.g. vmware datastores. Hence a generic DQL to obtain the information would be harder to make (or am I overlooking something?)...&lt;/P&gt;&lt;P&gt;So would it be possible to reconsider the segment awareness of the getEntities() ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sjoerd&lt;/P&gt;</description>
    <pubDate>Sun, 14 Sep 2025 13:20:17 GMT</pubDate>
    <dc:creator>SjoerdB</dc:creator>
    <dc:date>2025-09-14T13:20:17Z</dc:date>
    <item>
      <title>Is monitoredEntitiesClient.getEntities() segments aware?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285870#M1540</link>
      <description>&lt;P&gt;In an application (dynatrace app), I added segments in my filterbar, and set the SegmentsProvider at the right level. Still when I query for entities with the `monitoredEntitiesClient.getEntities()` function, I get all entities and it doesn't take my chosen segment into account.&lt;/P&gt;&lt;P&gt;So my main question is: is, or will `monitoredEntitiesClient.getEntities()` be segment aware?&lt;/P&gt;&lt;P&gt;In my app this getEntities is used for many different Types, so this is programatically the best option for me as far as I can oversee.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 09:19:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285870#M1540</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-09-12T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is monitoredEntitiesClient.getEntities() segments aware?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285878#M1541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/16542"&gt;@SjoerdB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;monitoredEntitiesClient.getEntities() is not segments aware and it is not planned to make it segments aware.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Instead, I would recommend that you query via DQL entities with&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/smartscape-commands#traverse" target="_blank"&gt;queryExecutionClient&lt;/A&gt; and pass the segment filter in the params. With DQL you should be able to get all entities as you would be able to do this with&amp;nbsp;monitoredEntitiesClient.getEntities()&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;BR /&gt;Sini&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 11:29:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285878#M1541</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2025-09-12T11:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is monitoredEntitiesClient.getEntities() segments aware?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285931#M1542</link>
      <description>&lt;P&gt;Hi Sini,&lt;/P&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;For my first use-case (simple HOST based query), this would work perfectly (and I will implement it in the coming days), however this is harder for my other use-cases, where I don't know upfront which entity types will be requested by the customer. Customer is able to set the type manually (e.g. "HOST", "SERVICE", but also custom (device sub-)types e.g. vmware datastores. Hence a generic DQL to obtain the information would be harder to make (or am I overlooking something?)...&lt;/P&gt;&lt;P&gt;So would it be possible to reconsider the segment awareness of the getEntities() ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sjoerd&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 13:20:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285931#M1542</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-09-14T13:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is monitoredEntitiesClient.getEntities() segments aware?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285950#M1543</link>
      <description>&lt;P&gt;Hi Sjoerd,&lt;/P&gt;
&lt;P&gt;With the new &lt;A href="https://docs.dynatrace.com/docs/shortlink/smartscape-commands#smartscapeNodes" target="_blank"&gt;smartscapeNodes command&lt;/A&gt; you can query all entities (nodes) at once, independent of the entity type. It utilizes the &lt;A href="https://docs.dynatrace.com/docs/shortlink/release-notes-saas-sprint-317#smartscape" target="_blank"&gt;G&lt;/A&gt;&lt;SPAN&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/release-notes-saas-sprint-317#smartscape" target="_blank"&gt;rail-native Smartscape storage&lt;/A&gt;. More entities will be added over time, currently it stores &lt;A href="https://docs.dynatrace.com/docs/shortlink/preview-program#new-cloud-platform-monitoring-for-aws" target="_blank"&gt;AWS&lt;/A&gt; &amp;amp; &lt;A href="https://docs.dynatrace.com/docs/shortlink/preview-program#enhanced-kubernetes-object-visibility" target="_blank"&gt;kubernetes&lt;/A&gt; entities if you participate in the previews.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For early next we have planned to add entities like host and process to the new storage.&lt;/P&gt;
&lt;P&gt;Now, having in mind your custom app, with one DQL command, you can query the available types:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;smartscapeNodes "*"
| fields type
| dedup type&lt;/LI-CODE&gt;
&lt;P&gt;Then, with another one, you can query the selected entities:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;smartscapeNodes "*"
| filter in (type, array("K8S_NAMESPACE", "K8S_POD"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Sini&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 07:30:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/285950#M1543</guid>
      <dc:creator>sinisa_zubic</dc:creator>
      <dc:date>2025-09-15T07:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is monitoredEntitiesClient.getEntities() segments aware?</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/287681#M1561</link>
      <description>&lt;P&gt;This will definitively help in getting all entity types through DQL, since it also has some more info like tags available. I will just need to wait until it becomes available, to test how it works with all sorts of custom devices (from e.g. extensions).&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 11:22:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Is-monitoredEntitiesClient-getEntities-segments-aware/m-p/287681#M1561</guid>
      <dc:creator>SjoerdB</dc:creator>
      <dc:date>2025-10-13T11:22:16Z</dc:date>
    </item>
  </channel>
</rss>

