<?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: Extension 2.0 Screens - How to add filtering in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220718#M983</link>
    <description>&lt;P&gt;Only attributes are supported currently. Any other suggestions you can post as product ideas on the &lt;A href="https://community.dynatrace.com/t5/Product-ideas/idb-p/DynatraceProductIdeas" target="_self"&gt;dedicated forum&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 07:59:30 GMT</pubDate>
    <dc:creator>Radu</dc:creator>
    <dc:date>2023-08-16T07:59:30Z</dc:date>
    <item>
      <title>Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/189329#M430</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Use case&lt;/STRONG&gt;: Enabling filtering and filter bars to &lt;A href="https://www.dynatrace.com/support/help/shortlink/ua-pages#entities-list-card" target="_self"&gt;entity lists&lt;/A&gt; of &lt;A href="https://www.dynatrace.com/support/help/shortlink/ua-pages" target="_self"&gt;screens&lt;/A&gt; created from an &lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/extension-yaml" target="_self"&gt;Extension 2.0 YAML&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Radu_0-1656400972454.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6296iD2569B992F7ED3F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Radu_0-1656400972454.png" alt="Radu_0-1656400972454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Example context&lt;/STRONG&gt;: I have an entity type "my:interface" that has a RUNS_ON relationship to an entity type "my:device". I have an &lt;A href="https://www.dynatrace.com/support/help/shortlink/ua-pages#entities-list-card" target="_self"&gt;Entities List card&lt;/A&gt; which already lists all "my:interface" entities I want to filter.&lt;/P&gt;
&lt;P&gt;All definitions are given based on schema version 1.239 and may or may not change in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example 1&lt;/STRONG&gt;: I want to filter my list by the interface names.&lt;BR /&gt;YAML definition:&lt;/P&gt;
&lt;PRE&gt;filtering:&lt;BR /&gt;  entityFilters:&lt;BR /&gt;    - displayName: Interface&lt;BR /&gt;      filters:&lt;BR /&gt;        - type: entityName&lt;BR /&gt;          displayName: Name&lt;BR /&gt;          freeText: true&lt;BR /&gt;          modifier: contains&lt;BR /&gt;          defaultSearch: true&lt;BR /&gt;          distinct: false&lt;BR /&gt;          entityTypes:&lt;BR /&gt;            - my:interface&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;YAML explanation&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filtering&lt;/FONT&gt; &lt;/STRONG&gt;- the block which defines the filtering capability&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;entityFilters&lt;/FONT&gt; &lt;/STRONG&gt;- the block which defines the groups of filters (these are displayed slightly greyed out in the filtering list)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filters&lt;/FONT&gt;&lt;/STRONG&gt; - the actual filters that are part of this group&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;displayName&lt;/FONT&gt; &lt;/STRONG&gt;- how this filter is labelled within the UI&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Radu_1-1656402064590.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6297iF648CB979112D7C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Radu_1-1656402064590.png" alt="Radu_1-1656402064590.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;type&lt;/FONT&gt; &lt;/STRONG&gt;- must reference an attribute of the entity you are filtering. Note: every entity has &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;entityName&lt;/STRONG&gt; &lt;/FONT&gt;as a default attribute.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;freeText&lt;/FONT&gt; &lt;/STRONG&gt;- if true, the user can freely type text; otherwise they must select from a list of suggestions. Note: only default attributes such as &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;entityName&lt;/FONT&gt; &lt;/STRONG&gt;are capable of offering list of suggestions.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;modifier&lt;/FONT&gt; &lt;/STRONG&gt;- when &lt;STRONG&gt;freeText&lt;/STRONG&gt; is &lt;STRONG&gt;true&lt;/STRONG&gt;, this defines how the text should be matched against the attribute. When &lt;STRONG&gt;freeText&lt;/STRONG&gt; is &lt;STRONG&gt;false&lt;/STRONG&gt;, this must be omitted. Note: all non-default attributes must match as "equals" regardless of this option.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;defaultSearch&lt;/FONT&gt; &lt;/STRONG&gt;- when true, if the user starts typing without selecting a filter first, this filter will be selected by default. Only one filter within the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;filtering&lt;/STRONG&gt;&lt;/FONT&gt; block may have this enabled.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;distinct&lt;/FONT&gt; &lt;/STRONG&gt;- when true, only one instance of this filter can be applied&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;entityTypes&lt;/FONT&gt; &lt;/STRONG&gt;- A mandatory list of entity types that this filter applies to. If you omit this, your filtering bar will just show a spinning wheel because of the incomplete definition.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;: Given example 1, I also want to filter by the device these interfaces are running on&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;YAML definition:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;filtering:&lt;BR /&gt;  relationships:&lt;BR /&gt;    - type(my:device),toRelationships.runsOn($(entityConditions))&lt;BR /&gt;  entityFilters:&lt;BR /&gt;    - displayName: Interface&lt;BR /&gt;      filters:&lt;BR /&gt;        - type: entityName&lt;BR /&gt;          displayName: Name&lt;BR /&gt;          freeText: true&lt;BR /&gt;          modifier: contains&lt;BR /&gt;          defaultSearch: true&lt;BR /&gt;          distinct: false&lt;BR /&gt;          entityTypes:&lt;BR /&gt;            - my:interface&lt;BR /&gt;    - displayName: Related entity&lt;BR /&gt;      filters:&lt;BR /&gt;        - type: entityName&lt;BR /&gt;          displayName: Device name&lt;BR /&gt;         &amp;nbsp;freeText: false&lt;BR /&gt;          defaultSearch: false&lt;BR /&gt;          distinct: true&lt;BR /&gt;          entityTypes:&lt;BR /&gt;            - my:device          &lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;YAML Explanation:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Most of the definition is the same as above. Changes include:&lt;FONT face="courier new,courier"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;filters&lt;/FONT&gt;&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="verdana,geneva"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;entityTypes&lt;/STRONG&gt; &lt;/FONT&gt;- For the second filter, this is now "my:device". This is because despite filtering a list of interfaces, the filter attribute belongs to devices.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;relationships&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="verdana,geneva"&gt;any entity that is not directly part of the entity list must have a relationship defined to the listed entity for it to be considered. &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$(entityConditions)&lt;/FONT&gt;&lt;/STRONG&gt; here resolves to each of the "my:interface" entities.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:16:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/189329#M430</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2022-06-29T14:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/201900#M668</link>
      <description>&lt;P&gt;Great Tip&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22272"&gt;@Radu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 21:58:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/201900#M668</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-09T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/212328#M842</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/22272"&gt;@Radu&lt;/a&gt;&amp;nbsp; for the infos, especially about ommiting the freeText field for equals modifiers is valueable, since I couldn't figure out the reason for the error message&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dtcli.utils.ExtensionValidationError: {"error":{"code":400,"message":"Validation errors for asset node:host:\nGiven property 'modifier' with value: 'equals' should not be set as its precondition is not satisfied\n","constraintViolations":[]}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However with Schema version 1.263 I now receive following error, indicating that freeText is mandory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dtcli.utils.ExtensionValidationError: {"error":{"code":400,"message":"Extension validation error","constraintViolations":[{"path":"$.screens[1].entitiesListCards[0].filtering.entityFilters[0].filters[4]","message":"$.screens[1].entitiesListCards[0].filtering.entityFilters[0].filters[4].freeText: is missing but it is required","parameterLocation":"PAYLOAD_BODY","location":null}]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it seems that this is a chicken/egg problem do you have an idea how to solve this?&lt;/P&gt;
&lt;P&gt;Something I also recognized is that the contains modifier is only suitable for entity names, other attributes can not make use of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 08:52:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/212328#M842</guid>
      <dc:creator>patrik_steuer</dc:creator>
      <dc:date>2023-05-16T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/212332#M843</link>
      <description>&lt;P&gt;Another remark, it would be great to have the possibility to filter by health state, so that you can focus on not healthy entities.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:07:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/212332#M843</guid>
      <dc:creator>patrik_steuer</dc:creator>
      <dc:date>2023-05-16T09:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220385#M976</link>
      <description>&lt;P&gt;Do you know if it is possible to not only use attributes, but also tags for filtering?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:35:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220385#M976</guid>
      <dc:creator>patrik_steuer</dc:creator>
      <dc:date>2023-08-10T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220716#M981</link>
      <description>&lt;P&gt;I believe freeText must always be present with either true or false value. It cannot be omitted. With relation to modifiers, this still is the case - if freeText = false, then you should not specify modifier.&lt;BR /&gt;As for the attributes, it is only the special - entityName, ipAddress (a.k.a. dt.ip_addresses), listenPort (a.k.a. dt.listen_ports), and dnsName (dt.dns_names) - that support suggestions in the UI.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 07:58:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220716#M981</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2023-08-16T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220717#M982</link>
      <description>&lt;P&gt;Please post it as a product idea in the dedicated forum &lt;A href="https://community.dynatrace.com/t5/Product-ideas/idb-p/DynatraceProductIdeas" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 07:58:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220717#M982</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2023-08-16T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220718#M983</link>
      <description>&lt;P&gt;Only attributes are supported currently. Any other suggestions you can post as product ideas on the &lt;A href="https://community.dynatrace.com/t5/Product-ideas/idb-p/DynatraceProductIdeas" target="_self"&gt;dedicated forum&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 07:59:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/220718#M983</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2023-08-16T07:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extension 2.0 Screens - How to add filtering</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/255123#M1360</link>
      <description>&lt;P&gt;Currently supported attributes for filtering on generic entities are the same as of other CUSTOM_DEVICES:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;- dt.security_context
- entityName
- healthState
- ipAddress
- mzId
- mzName
- softwareTechnologies
- softwareTechnologies.version
- tag&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;An endpoint is available under /rest/v2/entities/suggest, which can be used to query the available filters for an entity by providing an entity selector. Copy the request from your browser dev tools and adapt it as needed if you want to check it on your own.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 09:24:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Extension-2-0-Screens-How-to-add-filtering/m-p/255123#M1360</guid>
      <dc:creator>patrik_steuer</dc:creator>
      <dc:date>2024-09-06T09:24:41Z</dc:date>
    </item>
  </channel>
</rss>

