<?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 Filtering data based on application, host, service, process and Process Group in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-data-based-on-application-host-service-process-and/m-p/189230#M1945</link>
    <description>&lt;P&gt;We want to filter results from v2/metrics/query using process, host, process, processgroup or services etc using params present in dimensionMap.&lt;/P&gt;
&lt;P&gt;We need filtering based on process, process group, services, hosts and applications.&lt;/P&gt;
&lt;P&gt;So for host filtering this entitySelector worked&lt;/P&gt;
&lt;P&gt;?metricSelector=builtin:host.cpu.gcpu.usage:names&amp;amp;entitySelector=type("HOST"),entityName.equals("ABCD")&lt;/P&gt;
&lt;P&gt;Where ABCD is dt.entity.host.name in dimensionMap.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So how can i filter all other types of elements monitored by dynatrace?&lt;/P&gt;
&lt;P&gt;In below examples I want data of Real users only&lt;BR /&gt;&lt;BR /&gt;"dimensionMap": {&lt;BR /&gt;"User type": "Real users",&lt;BR /&gt;"dt.entity.application_method": "APPLICATION_METHOD-B2F93E1A7FA2007E"&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;To filter only above data I queried using api : /api/v2/metrics/query?metricSelector=builtin:apps.web.action.apdex:names&amp;amp;entitySelector=type("APPLICATION"),entityName.equals("Real users")&amp;amp;from=1652853660000&amp;amp;to=1652940060000&amp;amp;resolution=60m&lt;/P&gt;
&lt;P&gt;But getting no data.&lt;BR /&gt;&lt;BR /&gt;So what and all allowed values for entitySelector=type()&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 07:38:39 GMT</pubDate>
    <dc:creator>manjunathcr22</dc:creator>
    <dc:date>2024-08-21T07:38:39Z</dc:date>
    <item>
      <title>Filtering data based on application, host, service, process and Process Group</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-data-based-on-application-host-service-process-and/m-p/189230#M1945</link>
      <description>&lt;P&gt;We want to filter results from v2/metrics/query using process, host, process, processgroup or services etc using params present in dimensionMap.&lt;/P&gt;
&lt;P&gt;We need filtering based on process, process group, services, hosts and applications.&lt;/P&gt;
&lt;P&gt;So for host filtering this entitySelector worked&lt;/P&gt;
&lt;P&gt;?metricSelector=builtin:host.cpu.gcpu.usage:names&amp;amp;entitySelector=type("HOST"),entityName.equals("ABCD")&lt;/P&gt;
&lt;P&gt;Where ABCD is dt.entity.host.name in dimensionMap.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;So how can i filter all other types of elements monitored by dynatrace?&lt;/P&gt;
&lt;P&gt;In below examples I want data of Real users only&lt;BR /&gt;&lt;BR /&gt;"dimensionMap": {&lt;BR /&gt;"User type": "Real users",&lt;BR /&gt;"dt.entity.application_method": "APPLICATION_METHOD-B2F93E1A7FA2007E"&lt;BR /&gt;},&lt;BR /&gt;&lt;BR /&gt;To filter only above data I queried using api : /api/v2/metrics/query?metricSelector=builtin:apps.web.action.apdex:names&amp;amp;entitySelector=type("APPLICATION"),entityName.equals("Real users")&amp;amp;from=1652853660000&amp;amp;to=1652940060000&amp;amp;resolution=60m&lt;/P&gt;
&lt;P&gt;But getting no data.&lt;BR /&gt;&lt;BR /&gt;So what and all allowed values for entitySelector=type()&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 07:38:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-data-based-on-application-host-service-process-and/m-p/189230#M1945</guid>
      <dc:creator>manjunathcr22</dc:creator>
      <dc:date>2024-08-21T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data based on application, host, service, process and processgroup</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-data-based-on-application-host-service-process-and/m-p/189303#M1946</link>
      <description>&lt;P&gt;Hey manjunathcr,&lt;BR /&gt;&lt;BR /&gt;First to answer your question you can find all available types by using the API which is detailed here&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-all-entity-types" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-all-entity-types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, looking at your query the entity selector part is not where you would filter for real users as far as I know. I tried this out in my own environment and you would filter for real users in the metric selector portion of the query like so:&lt;/P&gt;&lt;P&gt;builtin:apps.web.action.apdex:filter(eq("User type","Real users"))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Lastly the correct type for this would be:&lt;/P&gt;&lt;P&gt;type("APPLICATION_METHOD")&lt;/P&gt;&lt;P&gt;You can tell by looking at the dimension map where we have dt.entity.application_method. What comes after dt.entity should be the entity type which can be used for the entity selector.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 03:57:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-data-based-on-application-host-service-process-and/m-p/189303#M1946</guid>
      <dc:creator>Fin_Ubels</dc:creator>
      <dc:date>2022-06-28T03:57:36Z</dc:date>
    </item>
  </channel>
</rss>

