<?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: How can I correctly map out multi-level to/from entity relationships like Service Flow &amp;amp; SmartScape using entities V2 API? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/291429#M3901</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/48870"&gt;@Nick-Montana&lt;/a&gt;&amp;nbsp;I'd recommend having a look at the upcoming smartscape in Grail where you can traverse relationships. Especially at the &lt;A href="https://docs.dynatrace.com/docs/shortlink/smartscape-commands#traverse" target="_blank"&gt;traverse&lt;/A&gt; command. See that in action in &lt;A href="https://wkf10640.apps.dynatrace.com/ui/intent/dynatrace.notebooks/view-query#%7B%22visualization%22%3A%22table%22%2C%22visualizationSettings%22%3A%7B%22table%22%3A%7B%22linewrapEnabled%22%3Atrue%2C%22lineWrapIds%22%3A%5B%5B%22dt.traverse.history%22%5D%5D%2C%22columnWidths%22%3A%7B%22%5B%5C%22dt.traverse.history%5C%22%5D%22%3A761%7D%7D%2C%22autoSelectVisualization%22%3Afalse%7D%2C%22dt.timeframe%22%3A%7B%22from%22%3A%22now()-30m%22%2C%22to%22%3A%22now()%22%7D%2C%22dt.query%22%3A%22smartscapeNodes%20SERVICE%5Cn%7C%20filter%20id%3D%3D%5C%22SERVICE-3173BE5994AD5D2B%5C%22%5Cn%7C%20traverse%20%7B%20%5C%22*%5C%22%20%7D%2C%20%7B%20SERVICE%20%7D%5Cn%7C%20traverse%20%7B%20%5C%22*%5C%22%20%7D%2C%20%7B%20SERVICE%20%7D%5Cn%22%2C%22hideInput%22%3Afalse%2C%22sourceApplication%22%3A%22dynatrace.notebooks%22%7D" target="_self"&gt;playground&lt;/A&gt;. But keep in mind, the relations might be a little bit different than you can see in the Gen2 (service flow) especially when it comes to third party services or databases.&lt;BR /&gt;&lt;BR /&gt;If you are not in SaaS and you run Dynatrace Managed, then you need to use the Entities API as you already do. There is no way to traverse relations and you need to issue multiple calls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Both of it is service to service relation. This does not allow you to see relations for particular request (e.g. show me the service flow this this request only). This is available in Grail with querying spans directly (no other method is currently possible). For Managed (Gen2), it's only UI based service flow / backtrace, which also does it from traces.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Dec 2025 20:33:51 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2025-12-14T20:33:51Z</dc:date>
    <item>
      <title>How can I correctly map out multi-level to/from entity relationships like Service Flow &amp; SmartScape using entities V2 API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/279544#M3789</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I work as a developer for a enterprise-level organization on the SRE team. My team builds a large/mature internal web application that our company developments teams use to track required resiliency tasks such as implement connection pooling, circuit breakers, caching etc.&lt;BR /&gt;&lt;BR /&gt;We use the Dynatrace API to construct entity relationships between our microservices but right now we only have it mapped at a single level. The relationships we are trying to get to is displayed in Dynatrace through Service Flow and SmartScape. However since these two capabilities are not accessible via API (I think?) our desired state is not easily obtainable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the entities API we know the direct upstream and downstream entity relationships which we use to correlate dependencies for our application. I need help understanding how we can &lt;STRONG&gt;&lt;EM&gt;determine these relationships at multiple levels using the Dynatrace API.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now all I can think of is querying spans through grail and use the trace/span ids to correlate entities. But this can be an expensive and complex ETL process and I thought it would be good to ask this question in this forum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example with services A, B, and Database C:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; A (Root Calling Service ) -&amp;gt; B (Downstream Calling Service) -&amp;gt; C (Database)&lt;BR /&gt;&lt;STRONG&gt;Our Current Relationships:&lt;/STRONG&gt; &lt;FONT color="#339966"&gt;A (Root Calling Service) - &amp;gt; B (Downstream Calling Service)&lt;/FONT&gt;&amp;nbsp;and &lt;FONT color="#339966"&gt;B (Downstream Calling Service) -&amp;gt; C (Database)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Need to implement&lt;/STRONG&gt;: &lt;FONT color="#FF0000"&gt;A (Service) -&amp;gt; C (Database)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Understand using Entities API:&lt;/STRONG&gt; This only tells me the direct relationships for a specific entity. It does not tell me that Service A calls Service C indirectly through a downstream service&lt;/P&gt;&lt;P&gt;Service A&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickMontana_0-1750091402580.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28529i2FDF5A9241E19290/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickMontana_0-1750091402580.png" alt="NickMontana_0-1750091402580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Service B&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickMontana_1-1750091434042.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28530i45618FCE57F2954D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickMontana_1-1750091434042.png" alt="NickMontana_1-1750091434042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Database/Host C&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickMontana_2-1750091471048.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/28531iB6208DEDEB8790F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickMontana_2-1750091471048.png" alt="NickMontana_2-1750091471048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde" size="5"&gt;&lt;STRONG&gt;Final Question:&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde" size="5"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;How can I programmatically find the relationship from DynatraceMetricsController (Root Calling Service A) to the indirect entity (C)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 16:57:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/279544#M3789</guid>
      <dc:creator>Nick-Montana</dc:creator>
      <dc:date>2025-06-16T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I correctly map out multi-level to/from entity relationships like Service Flow &amp; SmartScape using entities V2 API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/291379#M3894</link>
      <description>&lt;P&gt;Hello, Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to help Nick with finding a solution to the challenge he described above?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is highly appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2025 13:50:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/291379#M3894</guid>
      <dc:creator>Michal_Gebacki</dc:creator>
      <dc:date>2025-12-12T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I correctly map out multi-level to/from entity relationships like Service Flow &amp; SmartScape using entities V2 API?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/291429#M3901</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/48870"&gt;@Nick-Montana&lt;/a&gt;&amp;nbsp;I'd recommend having a look at the upcoming smartscape in Grail where you can traverse relationships. Especially at the &lt;A href="https://docs.dynatrace.com/docs/shortlink/smartscape-commands#traverse" target="_blank"&gt;traverse&lt;/A&gt; command. See that in action in &lt;A href="https://wkf10640.apps.dynatrace.com/ui/intent/dynatrace.notebooks/view-query#%7B%22visualization%22%3A%22table%22%2C%22visualizationSettings%22%3A%7B%22table%22%3A%7B%22linewrapEnabled%22%3Atrue%2C%22lineWrapIds%22%3A%5B%5B%22dt.traverse.history%22%5D%5D%2C%22columnWidths%22%3A%7B%22%5B%5C%22dt.traverse.history%5C%22%5D%22%3A761%7D%7D%2C%22autoSelectVisualization%22%3Afalse%7D%2C%22dt.timeframe%22%3A%7B%22from%22%3A%22now()-30m%22%2C%22to%22%3A%22now()%22%7D%2C%22dt.query%22%3A%22smartscapeNodes%20SERVICE%5Cn%7C%20filter%20id%3D%3D%5C%22SERVICE-3173BE5994AD5D2B%5C%22%5Cn%7C%20traverse%20%7B%20%5C%22*%5C%22%20%7D%2C%20%7B%20SERVICE%20%7D%5Cn%7C%20traverse%20%7B%20%5C%22*%5C%22%20%7D%2C%20%7B%20SERVICE%20%7D%5Cn%22%2C%22hideInput%22%3Afalse%2C%22sourceApplication%22%3A%22dynatrace.notebooks%22%7D" target="_self"&gt;playground&lt;/A&gt;. But keep in mind, the relations might be a little bit different than you can see in the Gen2 (service flow) especially when it comes to third party services or databases.&lt;BR /&gt;&lt;BR /&gt;If you are not in SaaS and you run Dynatrace Managed, then you need to use the Entities API as you already do. There is no way to traverse relations and you need to issue multiple calls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Both of it is service to service relation. This does not allow you to see relations for particular request (e.g. show me the service flow this this request only). This is available in Grail with querying spans directly (no other method is currently possible). For Managed (Gen2), it's only UI based service flow / backtrace, which also does it from traces.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Dec 2025 20:33:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-correctly-map-out-multi-level-to-from-entity/m-p/291429#M3901</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2025-12-14T20:33:51Z</dc:date>
    </item>
  </channel>
</rss>

