<?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 How to obtain Key Request reponse time and count via the DT API? in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110093#M451</link>
    <description>&lt;P&gt;I want to extract response time and count metrics for specific Key Request and am not clear whether this can be done via the API. &lt;/P&gt;&lt;P&gt;When I query the metrics available in the v2 API I see none that relate to Key Requests.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dtmanaged.int.bell.ca/e/bced360d-a02a-4b73-b0e7-46fe5ae1dc34/api/v2/metrics?Api-Token=xohG_SjLTbSZrr0yw0KtB"&gt;https://&amp;lt;ENV REFERENCE&amp;gt;/api/v2/metrics?Api-Token=&amp;lt;TOKEN&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Via DT chat, I was told that the following metrics should be available... I am not clear why I do not see them listed in the call above. I am also unclear what is meant by "client" and "server" in this context... do either of these provide the same info as would be shown as "Response Time" when showing a Key Request in the Key Request chart type of a dashboard? Is there a metric to get the request count?&lt;/P&gt;&lt;P&gt;builtin:service.keyRequest.response.server&lt;BR /&gt;builtin:service.keyRequest.response.client&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 19:46:15 GMT</pubDate>
    <dc:creator>jeff_rowell</dc:creator>
    <dc:date>2020-03-11T19:46:15Z</dc:date>
    <item>
      <title>How to obtain Key Request reponse time and count via the DT API?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110093#M451</link>
      <description>&lt;P&gt;I want to extract response time and count metrics for specific Key Request and am not clear whether this can be done via the API. &lt;/P&gt;&lt;P&gt;When I query the metrics available in the v2 API I see none that relate to Key Requests.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dtmanaged.int.bell.ca/e/bced360d-a02a-4b73-b0e7-46fe5ae1dc34/api/v2/metrics?Api-Token=xohG_SjLTbSZrr0yw0KtB"&gt;https://&amp;lt;ENV REFERENCE&amp;gt;/api/v2/metrics?Api-Token=&amp;lt;TOKEN&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Via DT chat, I was told that the following metrics should be available... I am not clear why I do not see them listed in the call above. I am also unclear what is meant by "client" and "server" in this context... do either of these provide the same info as would be shown as "Response Time" when showing a Key Request in the Key Request chart type of a dashboard? Is there a metric to get the request count?&lt;/P&gt;&lt;P&gt;builtin:service.keyRequest.response.server&lt;BR /&gt;builtin:service.keyRequest.response.client&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 19:46:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110093#M451</guid>
      <dc:creator>jeff_rowell</dc:creator>
      <dc:date>2020-03-11T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Key Request reponse time and count via the DT API?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110094#M452</link>
      <description>&lt;P&gt;Use this as metric selector:&lt;/P&gt;&lt;P&gt;builtin:service.keyRequest.*&lt;/P&gt;&lt;P&gt;These are results:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "totalCount": 28,&lt;BR /&gt;  "nextPageKey": null,&lt;BR /&gt;  "metrics": [&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.count.client",&lt;BR /&gt;      "displayName": "Request count - client",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.count.server",&lt;BR /&gt;      "displayName": "Request count - server",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.count.total",&lt;BR /&gt;      "displayName": "Request count",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.cpu.perRequest",&lt;BR /&gt;      "displayName": "CPU per request",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.cpu.time",&lt;BR /&gt;      "displayName": "Service method CPU time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.dbChildCallCount",&lt;BR /&gt;      "displayName": "Number of calls to databases",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.dbChildCallTime",&lt;BR /&gt;      "displayName": "Time spent in database calls",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.client.count",&lt;BR /&gt;      "displayName": "Number of client side errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.client.rate",&lt;BR /&gt;      "displayName": "Failure rate (client side  errors)",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Percent"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.client.successCount",&lt;BR /&gt;      "displayName": "Number of calls without  client side errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fivexx.count",&lt;BR /&gt;      "displayName": "Number of HTTP 5xx errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fivexx.rate",&lt;BR /&gt;      "displayName": "Failure rate (HTTP 5xx  errors)",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Percent"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fivexx.successCount",&lt;BR /&gt;      "displayName": "Number of calls without  HTTP 5xx errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fourxx.count",&lt;BR /&gt;      "displayName": "Number of HTTP 4xx errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fourxx.rate",&lt;BR /&gt;      "displayName": "Failure rate (HTTP 4xx  errors)",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Percent"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.fourxx.successCount",&lt;BR /&gt;      "displayName": "Number of calls without  HTTP 4xx errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.server.count",&lt;BR /&gt;      "displayName": "Number of server side errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.server.rate",&lt;BR /&gt;      "displayName": "Failure rate (server side  errors)",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Percent"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.errors.server.successCount",&lt;BR /&gt;      "displayName": "Number of calls without  server side errors",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.ioTime",&lt;BR /&gt;      "displayName": "IO time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.lockTime",&lt;BR /&gt;      "displayName": "Lock time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.nonDbChildCallCount",&lt;BR /&gt;      "displayName": "Number of calls to other services",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "Count"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.nonDbChildCallTime",&lt;BR /&gt;      "displayName": "Time spent in calls to other services",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.response.client",&lt;BR /&gt;      "displayName": "Client side response time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.response.server",&lt;BR /&gt;      "displayName": "Server side response time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.response.time",&lt;BR /&gt;      "displayName": "Method response time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.totalProcessingTime",&lt;BR /&gt;      "displayName": "Total processing time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    },&lt;BR /&gt;    {&lt;BR /&gt;      "metricId": "builtin:service.keyRequest.waitTime",&lt;BR /&gt;      "displayName": "Wait time",&lt;BR /&gt;      "description": "",&lt;BR /&gt;      "unit": "MicroSecond"&lt;BR /&gt;    }&lt;BR /&gt;  ]&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:30:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110094#M452</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-03-11T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Key Request reponse time and count via the DT API?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110095#M453</link>
      <description>&lt;P&gt;Thank you Sebastian. I see now that the reason that I couldn't find the KeyRequest metrics via my initial API call is that more than one page of metric data is returned... and I would have to make subsequent page calls with the next page key.&lt;/P&gt;&lt;P&gt;I am only unclear on two things at this point:&lt;/P&gt;&lt;P&gt;1. What is the difference between builtin:service.keyRequest.response.client and builtin:service.keyRequest.response.server? In the Key Request chart there is only a "Response Time" shown and I would have expected all key request time would be considered to be server time... so I am unclear what "client" time would be.&lt;/P&gt;&lt;P&gt;2. To obtain the response time for a specicic Key Request I would need to reference an entitySelector and an entityID, as shown below... I am unclear how I can obtain the correct entityID for my KeyRequest... in the DT GUI I only see KeyRequest names and it isn't clear to me how to lookup this ID.&lt;/P&gt;&lt;P&gt;https://&amp;lt;ENV&amp;gt;/api/v2/metrics/query?Api-Token=&amp;lt;Token&amp;gt;&amp;amp;metricSelector=builtin:service.keyRequest.response.server&amp;amp;entitySelector=type(SERVICE_METHOD),entityId(SERVICE_METHOD-052B9DE0A341E2BC)&amp;amp;resolution=M&amp;amp;from=now-12M&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I realize that I could do a lookup using name, but names are not always unique and we often have many key requests with the same name... the following, for example returns several Key Requests IDs... &lt;/P&gt;&lt;P&gt;https://&amp;lt;ENV&amp;gt;/api/v2/metrics/query?Api-Token=&amp;lt;TOKEN&amp;gt;&amp;amp;metricSelector=builtin:service.keyRequest.response.server&amp;amp;entitySelector=type(SERVICE_METHOD), &lt;CODE&gt;entityName&lt;/CODE&gt; (/RFEApp/Index.html)&amp;amp;resolution=M&amp;amp;from=now-12M&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:41:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110095#M453</guid>
      <dc:creator>jeff_rowell</dc:creator>
      <dc:date>2020-03-12T12:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain Key Request reponse time and count via the DT API?</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110096#M454</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/4563/view.html" nodeid="4563"&gt;@Jeff R.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Did you figure out this part how to filter the data to some specific Key Request? I currently struggling with the same thing that have not understood yet how to use the certain Key Request as a filter on Metrics api V2.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. To obtain the response time for a specicic Key Request I would need to reference an entitySelector and an entityID, as shown below... I am unclear how I can obtain the correct entityID for my KeyRequest... in the DT GUI I only see KeyRequest names and it isn't clear to me how to lookup this ID.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;https://&amp;lt;ENV&amp;gt;/api/v2/metrics/query?Api-Token=&amp;lt;Token&amp;gt;&amp;amp;metricSelector=builtin:service.keyRequest.response.server&amp;amp;entitySelector=type(SERVICE_METHOD),entityId(SERVICE_METHOD-052B9DE0A341E2BC)&amp;amp;resolution=M&amp;amp;from=now-12M&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 06:41:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/How-to-obtain-Key-Request-reponse-time-and-count-via-the-DT-API/m-p/110096#M454</guid>
      <dc:creator>janne_olkoniemi</dc:creator>
      <dc:date>2020-07-29T06:41:49Z</dc:date>
    </item>
  </channel>
</rss>

