<?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: Embed Dynatrace dashboard into our web application in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/Embed-Dynatrace-dashboard-into-our-web-application/m-p/254165#M4252</link>
    <description>&lt;P&gt;Hi Thanrindu,&lt;BR /&gt;&lt;BR /&gt;besides the layout, the dashboard json received from the API also contains information on how a tile gets its data. For tiles of type&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;data: The &lt;EM&gt;query&lt;/EM&gt; property contains the dql query.&lt;/LI&gt;&lt;LI&gt;code: The &lt;EM&gt;input&lt;/EM&gt; property contains the code executed on the server side.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, for example, to fetch the data for a data tile you'll have to use the &lt;EM&gt;queryExecutionClient&lt;/EM&gt; from the &lt;EM&gt;dynatrace-sdk&lt;/EM&gt;. In a code tile on a dashboard it would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { queryExecutionClient } from '@dynatrace-sdk/client-query';

export default async function () {
  // fetch the dashboard json here and assign it to a constant called "dashboard"

  // then get the query from the first tile
  const query = dashboard.tiles["1"].query;

  // and execute it via the queryExecutionClient
  const response = await queryExecutionClient.queryExecute({ body: { query } });

  return response.result;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if the same can be achieved for your case, but I hope this leads you in the right direction.&lt;BR /&gt;&lt;BR /&gt;- Andy&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2024 05:43:39 GMT</pubDate>
    <dc:creator>andreas_kothmei</dc:creator>
    <dc:date>2024-08-26T05:43:39Z</dc:date>
    <item>
      <title>Embed Dynatrace dashboard into our web application</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Embed-Dynatrace-dashboard-into-our-web-application/m-p/247767#M4014</link>
      <description>&lt;P&gt;I'm trying to Embed the Dynatrace dashboard into our website. for that, I have tried Dynatrace Dashboard API which is provided by the documentation. I tried the below API endpoint to get all available tiles in the given dashboard. here I pass the dashboard ID.&lt;/P&gt;&lt;P&gt;&lt;A href="https://{environmentid}.live.dynatrace.com/api/config/v1/dashboards" target="_blank" rel="noopener"&gt;https://{environmentid}.live.dynatrace.com/api/config/v1/dashboards&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but this API call only returns the dashboard with all the layout of the tiles available in the given dashboard. the response doesn't have the relevant data to draw the graph or charts whatever things we need to show as the result.&lt;/P&gt;&lt;P&gt;so my question is how can we get each tile with its data?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 13:28:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Embed-Dynatrace-dashboard-into-our-web-application/m-p/247767#M4014</guid>
      <dc:creator>Thanrindu</dc:creator>
      <dc:date>2024-06-09T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Embed Dynatrace dashboard into our web application</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/Embed-Dynatrace-dashboard-into-our-web-application/m-p/254165#M4252</link>
      <description>&lt;P&gt;Hi Thanrindu,&lt;BR /&gt;&lt;BR /&gt;besides the layout, the dashboard json received from the API also contains information on how a tile gets its data. For tiles of type&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;data: The &lt;EM&gt;query&lt;/EM&gt; property contains the dql query.&lt;/LI&gt;&lt;LI&gt;code: The &lt;EM&gt;input&lt;/EM&gt; property contains the code executed on the server side.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, for example, to fetch the data for a data tile you'll have to use the &lt;EM&gt;queryExecutionClient&lt;/EM&gt; from the &lt;EM&gt;dynatrace-sdk&lt;/EM&gt;. In a code tile on a dashboard it would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { queryExecutionClient } from '@dynatrace-sdk/client-query';

export default async function () {
  // fetch the dashboard json here and assign it to a constant called "dashboard"

  // then get the query from the first tile
  const query = dashboard.tiles["1"].query;

  // and execute it via the queryExecutionClient
  const response = await queryExecutionClient.queryExecute({ body: { query } });

  return response.result;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if the same can be achieved for your case, but I hope this leads you in the right direction.&lt;BR /&gt;&lt;BR /&gt;- Andy&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 05:43:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/Embed-Dynatrace-dashboard-into-our-web-application/m-p/254165#M4252</guid>
      <dc:creator>andreas_kothmei</dc:creator>
      <dc:date>2024-08-26T05:43:39Z</dc:date>
    </item>
  </channel>
</rss>

