<?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: Metrics v2: How to pull out data from specific Key Request or use filters in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-v2-How-to-pull-out-data-from-specific-Key-Request-or-use/m-p/115155#M1656</link>
    <description>&lt;P&gt;Hi Janne,&lt;/P&gt;&lt;P&gt;You are absolutely spot on! Your API call seems correct to me.&lt;/P&gt;&lt;P&gt;The key parts are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;metricSelector - must be for a '.keyRequest.' type metric&lt;/LI&gt;&lt;LI&gt;entitySelector - must have: &lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;type("SERVICE_METHOD"),entityId("SERVICE_METHOD-xxxxxxxx")&lt;/PRE&gt;&lt;P&gt;Also, make sure your metric actually exists at the keyRequest level. On my environment for example, I have dbChildCall only at the service level:&lt;/P&gt;&lt;PRE&gt;builtin:service.dbChildCallCount&lt;/PRE&gt;&lt;P&gt;Try using a generic one (for testing purposes) to ensure your call returns something. Maybe something like:&lt;/P&gt;&lt;PRE&gt;builtin:service.keyRequest.count.total&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Radu&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 15:16:35 GMT</pubDate>
    <dc:creator>Radu</dc:creator>
    <dc:date>2020-07-29T15:16:35Z</dc:date>
    <item>
      <title>Metrics v2: How to pull out data from specific Key Request or use filters</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-v2-How-to-pull-out-data-from-specific-Key-Request-or-use/m-p/115154#M1655</link>
      <description>&lt;P&gt;How to pull out data from metrics api v2 which would contain data from one certain key request?&lt;BR /&gt;Should I use and obtain the entityID for my KeyRequest somehow and would there be possibility to filter the requests based on request parameters?&lt;BR /&gt;&lt;BR /&gt;I can filter out some certain service but this call returns data from all the Key Requests and I would need to filter my data to one specific use case but can't get my head around how to do it.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;EM&gt;https://xxxxxxxxx.live.dynatrace.com/api/v2/metrics/query?resolution=Inf&amp;amp;from=1595851920000&amp;amp;to=1595852100000&amp;amp;api-token=XXXXXXXXXX&amp;amp;metricSelector=builtin:service.keyRequest.dbChildCallCount&amp;amp;entitySelector=type(SERVICE_METHOD),entityId(SERVICE_METHOD-18444A1107CDD08C&amp;nbsp;)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried go trough the documentation but I would appreciate if someone could offer some help how we could filter out data.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 09:21:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-v2-How-to-pull-out-data-from-specific-Key-Request-or-use/m-p/115154#M1655</guid>
      <dc:creator>janne_olkoniemi</dc:creator>
      <dc:date>2023-03-27T09:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics v2: How to pull out data from specific Key Request or use filters</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-v2-How-to-pull-out-data-from-specific-Key-Request-or-use/m-p/115155#M1656</link>
      <description>&lt;P&gt;Hi Janne,&lt;/P&gt;&lt;P&gt;You are absolutely spot on! Your API call seems correct to me.&lt;/P&gt;&lt;P&gt;The key parts are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;metricSelector - must be for a '.keyRequest.' type metric&lt;/LI&gt;&lt;LI&gt;entitySelector - must have: &lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;type("SERVICE_METHOD"),entityId("SERVICE_METHOD-xxxxxxxx")&lt;/PRE&gt;&lt;P&gt;Also, make sure your metric actually exists at the keyRequest level. On my environment for example, I have dbChildCall only at the service level:&lt;/P&gt;&lt;PRE&gt;builtin:service.dbChildCallCount&lt;/PRE&gt;&lt;P&gt;Try using a generic one (for testing purposes) to ensure your call returns something. Maybe something like:&lt;/P&gt;&lt;PRE&gt;builtin:service.keyRequest.count.total&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Radu&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 15:16:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metrics-v2-How-to-pull-out-data-from-specific-Key-Request-or-use/m-p/115155#M1656</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2020-07-29T15:16:35Z</dc:date>
    </item>
  </channel>
</rss>

