<?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: Looking for suggestions related to DQL in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246236#M917</link>
    <description>&lt;P&gt;Mmmm...I don't think so. Not sure if it being planned...&lt;/P&gt;&lt;P&gt;There is a semantic dictionary where you might be able to search, but I realize it isn't exactly what you are asking for:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/semantic-dictionary/model/dt-entities" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/semantic-dictionary/model/dt-entities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, in the future I wonder if Davis Copilot might be able to help when it creates DQL queries from natural language....&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 20:30:40 GMT</pubDate>
    <dc:creator>FranciscoGarcia</dc:creator>
    <dc:date>2024-05-21T20:30:40Z</dc:date>
    <item>
      <title>Looking for suggestions related to DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246033#M910</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am looking for a way to find below details using DQL. Please suggest:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How to get the management zones of the open problems? I tried below but it did not work:&lt;/P&gt;&lt;PRE&gt;fetch events | filter event.kind == "DAVIS_PROBLEM" AND matchesValue(labels.management_zone, "NAME_HERE")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;2. How to know what are the possible fields in a category(logs, events etc) and vice versa(eg.&amp;nbsp;labels.alerting_profile will be under events?)&lt;/P&gt;&lt;P&gt;3. In&amp;nbsp;labels.alerting_profile we have multiple elements stored inside it. How to get only those rows in result where&amp;nbsp;labels.alerting_profile contains only the specified element and nothing else. I tried matchesValue, MatchesPhrase, matchesValue[element] etc however no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 15:20:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246033#M910</guid>
      <dc:creator>harry22</dc:creator>
      <dc:date>2024-05-19T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions related to DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246077#M913</link>
      <description>&lt;P&gt;Hi Harry. 3rd gen dashboards and DQL are not really meant to use management zones so it's a little more complicated than it should for now. In the future there will be better features (filters) for doing this...&lt;BR /&gt;&lt;BR /&gt;In the meantimen the only way you can access the management zone is to do a lookup with the affected entities. Imagine you want to get services in the "Cloud: Google" MZ. Something like this might help:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events
| filter event.kind=="DAVIS_PROBLEM"
| dedup display_id, sort:{timestamp desc} // Remove duplicates
| filter contains(tostring(affected_entity_types), "dt.entity.service") 
| expand affected_entity_ids
| filter contains(affected_entity_ids, "SERVICE")
| lookup [fetch dt.entity.service], sourceField:affected_entity_ids, lookupField:id, fields:{managementZones}
| filter contains(toString(managementZones), "Cloud: Google")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;There are other options, you might want to use the alerting profile, the entity_tags field, etc...&lt;BR /&gt;&lt;BR /&gt;2 - I feel autocomplete is your best bet. You can also do "fetch events" in a record list visualizations and look at the left part of the table (it has a list of all fields).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FranciscoGarcia_0-1716204410655.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/19974i6E1BD8347B096F37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FranciscoGarcia_0-1716204410655.png" alt="FranciscoGarcia_0-1716204410655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3- Probably becasue labels.alerting_profile is an array (you can see this in the raw visualization) and those are string functions. You can use tostring to turn it into a string.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch events
| filter contains(toString(labels.alerting_profile), "Default")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or use something like arrayIndexOf&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 11:35:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246077#M913</guid>
      <dc:creator>FranciscoGarcia</dc:creator>
      <dc:date>2024-05-20T11:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions related to DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246231#M916</link>
      <description>&lt;P&gt;Hi Francisco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the details. It is helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding point 2 - How can we do vice versa? Eg. How would someone know that managementZone is under dt.events.service ? Is there a plan/possibility to extend a feature like describe to give more details about a field/category?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:08:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246231#M916</guid>
      <dc:creator>harry22</dc:creator>
      <dc:date>2024-05-21T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions related to DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246236#M917</link>
      <description>&lt;P&gt;Mmmm...I don't think so. Not sure if it being planned...&lt;/P&gt;&lt;P&gt;There is a semantic dictionary where you might be able to search, but I realize it isn't exactly what you are asking for:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform/semantic-dictionary/model/dt-entities" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/semantic-dictionary/model/dt-entities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also, in the future I wonder if Davis Copilot might be able to help when it creates DQL queries from natural language....&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 20:30:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246236#M917</guid>
      <dc:creator>FranciscoGarcia</dc:creator>
      <dc:date>2024-05-21T20:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions related to DQL</title>
      <link>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246239#M918</link>
      <description>&lt;P&gt;Thank you, Francisco.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Framing a DQL would be really quick once we have access to create it using Davis Copilot.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 20:55:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/Looking-for-suggestions-related-to-DQL/m-p/246239#M918</guid>
      <dc:creator>harry22</dc:creator>
      <dc:date>2024-05-21T20:55:00Z</dc:date>
    </item>
  </channel>
</rss>

