<?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: Filtering results based on hosts or process. Which query param can be used for filtering? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-results-based-on-hosts-or-process-Which-query-param/m-p/189079#M1940</link>
    <description>&lt;P&gt;You can use either the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/entity-selector" target="_self"&gt;entitySelector&lt;/A&gt;&amp;nbsp;parameter or the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points" target="_self"&gt;Metrics v2 get-data-points API&lt;/A&gt;&amp;nbsp; you are using. Also, it's possible to use the entitySelector directly in the metricSelector argument by using the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/metric-selector#filter" target="_self"&gt;:filter transformation&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 10:47:59 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2022-12-16T10:47:59Z</dc:date>
    <item>
      <title>Filtering results based on hosts or process. Which query param can be used for filtering?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-results-based-on-hosts-or-process-Which-query-param/m-p/189077#M1939</link>
      <description>&lt;P data-unlink="true"&gt;https://AAA12345.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.gcpu.usage:names&amp;amp;from=1652853660000&amp;amp;to=1652940060000&amp;amp;resolution=60m&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For this query I am getting two hosts as result. Is it possible two specify hostname&amp;nbsp; XYZ or&amp;nbsp;ABCD and get result of single host? Which query param can be used for filtering?&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"totalCount": 2,&lt;BR /&gt;"nextPageKey": null,&lt;BR /&gt;"resolution": "1h",&lt;BR /&gt;"result": [&lt;BR /&gt;{&lt;BR /&gt;"metricId": "builtin:host.cpu.gcpu.usage:names",&lt;BR /&gt;"dataPointCountRatio": 1.2E-4,&lt;BR /&gt;"dimensionCountRatio": 0.001,&lt;BR /&gt;"data": [&lt;BR /&gt;{&lt;BR /&gt;"dimensions": [&lt;BR /&gt;"XYZ",&lt;BR /&gt;"HOST-ABCDEF"&lt;BR /&gt;],&lt;BR /&gt;"dimensionMap": {&lt;BR /&gt;"dt.entity.host.name": "XYZ",&lt;BR /&gt;"dt.entity.host": "HOST-ABCDEF"&lt;BR /&gt;},&lt;BR /&gt;"timestamps": [&lt;BR /&gt;1652857200000,&lt;BR /&gt;1652860800000,&lt;BR /&gt;1652864400000,&lt;BR /&gt;1652868000000,&lt;BR /&gt;1652871600000,&lt;BR /&gt;1652875200000,&lt;BR /&gt;1652878800000,&lt;BR /&gt;1652882400000,&lt;BR /&gt;1652886000000,&lt;BR /&gt;1652889600000,&lt;BR /&gt;1652893200000,&lt;BR /&gt;1652896800000,&lt;BR /&gt;1652900400000,&lt;BR /&gt;1652904000000,&lt;BR /&gt;1652907600000,&lt;BR /&gt;1652911200000,&lt;BR /&gt;1652914800000,&lt;BR /&gt;1652918400000,&lt;BR /&gt;1652922000000,&lt;BR /&gt;1652925600000,&lt;BR /&gt;1652929200000,&lt;BR /&gt;1652932800000,&lt;BR /&gt;1652936400000,&lt;BR /&gt;1652940000000,&lt;BR /&gt;1652943600000&lt;BR /&gt;],&lt;BR /&gt;"values": [&lt;BR /&gt;4.322033898305085,&lt;BR /&gt;4.083333333333333,&lt;BR /&gt;5.15,&lt;BR /&gt;23.258333333333333,&lt;BR /&gt;8.075,&lt;BR /&gt;4.35,&lt;BR /&gt;6.016666666666667,&lt;BR /&gt;3.0833333333333335,&lt;BR /&gt;3.558333333333333,&lt;BR /&gt;7.308333333333334,&lt;BR /&gt;9.321739130434782,&lt;BR /&gt;2.9916666666666667,&lt;BR /&gt;6.433333333333334,&lt;BR /&gt;3.6333333333333333,&lt;BR /&gt;3.216666666666667,&lt;BR /&gt;3.475,&lt;BR /&gt;4.225,&lt;BR /&gt;3.8333333333333335,&lt;BR /&gt;2.525,&lt;BR /&gt;3.933333333333333,&lt;BR /&gt;3.6333333333333333,&lt;BR /&gt;6.283333333333333,&lt;BR /&gt;4.45,&lt;BR /&gt;6.875,&lt;BR /&gt;4.308333333333334&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"dimensions": [&lt;BR /&gt;"ABCD",&lt;BR /&gt;"HOST-XYZ"&lt;BR /&gt;],&lt;BR /&gt;"dimensionMap": {&lt;BR /&gt;"dt.entity.host.name": "ABCD",&lt;BR /&gt;"dt.entity.host": "HOST-XYZ"&lt;BR /&gt;},&lt;BR /&gt;"timestamps": [&lt;BR /&gt;1652857200000,&lt;BR /&gt;1652860800000,&lt;BR /&gt;1652864400000,&lt;BR /&gt;1652868000000,&lt;BR /&gt;1652871600000,&lt;BR /&gt;1652875200000,&lt;BR /&gt;1652878800000,&lt;BR /&gt;1652882400000,&lt;BR /&gt;1652886000000,&lt;BR /&gt;1652889600000,&lt;BR /&gt;1652893200000,&lt;BR /&gt;1652896800000,&lt;BR /&gt;1652900400000,&lt;BR /&gt;1652904000000,&lt;BR /&gt;1652907600000,&lt;BR /&gt;1652911200000,&lt;BR /&gt;1652914800000,&lt;BR /&gt;1652918400000,&lt;BR /&gt;1652922000000,&lt;BR /&gt;1652925600000,&lt;BR /&gt;1652929200000,&lt;BR /&gt;1652932800000,&lt;BR /&gt;1652936400000,&lt;BR /&gt;1652940000000,&lt;BR /&gt;1652943600000&lt;BR /&gt;],&lt;BR /&gt;"values": [&lt;BR /&gt;53.11666666666667,&lt;BR /&gt;59.675,&lt;BR /&gt;63.36666666666667,&lt;BR /&gt;56.88333333333333,&lt;BR /&gt;57.36666666666667,&lt;BR /&gt;57.05833333333333,&lt;BR /&gt;58.708333333333336,&lt;BR /&gt;59.641666666666666,&lt;BR /&gt;54.916666666666664,&lt;BR /&gt;56.61666666666667,&lt;BR /&gt;55.59322033898305,&lt;BR /&gt;55.833333333333336,&lt;BR /&gt;56.56666666666667,&lt;BR /&gt;56.74166666666667,&lt;BR /&gt;55.38333333333333,&lt;BR /&gt;56.4,&lt;BR /&gt;54.53333333333333,&lt;BR /&gt;55.425,&lt;BR /&gt;61.55,&lt;BR /&gt;62.65,&lt;BR /&gt;60.666666666666664,&lt;BR /&gt;66.475,&lt;BR /&gt;73.225,&lt;BR /&gt;73.09166666666667,&lt;BR /&gt;53.708333333333336&lt;BR /&gt;]&lt;BR /&gt;}]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 09:18:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-results-based-on-hosts-or-process-Which-query-param/m-p/189077#M1939</guid>
      <dc:creator>manjunathcr22</dc:creator>
      <dc:date>2023-03-27T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering results based on hosts or process. Which query param can be used for filtering?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-results-based-on-hosts-or-process-Which-query-param/m-p/189079#M1940</link>
      <description>&lt;P&gt;You can use either the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/entity-selector" target="_self"&gt;entitySelector&lt;/A&gt;&amp;nbsp;parameter or the&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points" target="_self"&gt;Metrics v2 get-data-points API&lt;/A&gt;&amp;nbsp; you are using. Also, it's possible to use the entitySelector directly in the metricSelector argument by using the &lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/metric-selector#filter" target="_self"&gt;:filter transformation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 10:47:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Filtering-results-based-on-hosts-or-process-Which-query-param/m-p/189079#M1940</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-12-16T10:47:59Z</dc:date>
    </item>
  </channel>
</rss>

