<?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 Get Service Method and call numbers in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167582#M1288</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm new on Dynatrace API and I'm trying to get automatically the same information I see on UI.&lt;/P&gt;&lt;P&gt;In particular I'd like to get, for any service on a host, the list of service methods with the number of requests (the same information I can see in the screenshot below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cespo_0-1623663810070.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1288i870E7C7C46050912/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cespo_0-1623663810070.png" alt="Cespo_0-1623663810070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/api/v1/entity/infrastructure/processes?host="Host-Id"&lt;/LI-CODE&gt;&lt;P&gt;I've the list of services on host but I haven't found an API to get the service method list.&lt;/P&gt;&lt;P&gt;With this info I think I can use the metric "com.dynatrace.builtin:servicemethod.responsetime" but without the service method entity id I'm stucked.&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Cespo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 10:08:03 GMT</pubDate>
    <dc:creator>Cespo</dc:creator>
    <dc:date>2021-06-14T10:08:03Z</dc:date>
    <item>
      <title>Get Service Method and call numbers</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167582#M1288</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm new on Dynatrace API and I'm trying to get automatically the same information I see on UI.&lt;/P&gt;&lt;P&gt;In particular I'd like to get, for any service on a host, the list of service methods with the number of requests (the same information I can see in the screenshot below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cespo_0-1623663810070.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/1288i870E7C7C46050912/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cespo_0-1623663810070.png" alt="Cespo_0-1623663810070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/api/v1/entity/infrastructure/processes?host="Host-Id"&lt;/LI-CODE&gt;&lt;P&gt;I've the list of services on host but I haven't found an API to get the service method list.&lt;/P&gt;&lt;P&gt;With this info I think I can use the metric "com.dynatrace.builtin:servicemethod.responsetime" but without the service method entity id I'm stucked.&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Cespo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:08:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167582#M1288</guid>
      <dc:creator>Cespo</dc:creator>
      <dc:date>2021-06-14T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Service Method and call numbers</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167601#M1289</link>
      <description>&lt;P&gt;Hi Cespo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to pull response time data out of Dynatrace per request, you have to mark the requests that you want to pull as key requests.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Performance data for requests is aggregated at the service level and stored for that service in a manner that the Metrics API can query. Marking a request as a key request makes Dynatrace store performance data for just that request separately as well, so it can be viewed for a longer period of time and queried through the APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you mark your request as a key request, you can use the below API to pull response time data:&lt;BR /&gt;&lt;A href="https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points/" target="_blank"&gt;https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/get-data-points/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below endpoint should be what you are looking for:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/api/v2/metric/query?metricSelector=builtin:service.keyRequest.response.time&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;All of the available metrics for Key Requests are on this page:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/api-metrics2-available-saas#service-keyRequest" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/api-metrics2-available-saas#service-keyRequest&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 18:29:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167601#M1289</guid>
      <dc:creator>trevor_masseng1</dc:creator>
      <dc:date>2021-06-14T18:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Service Method and call numbers</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167626#M1296</link>
      <description>&lt;P&gt;Hi trevor_masseng1,&lt;/P&gt;&lt;P&gt;thanks for your reply. I've understood I need to set response.time and&amp;nbsp;&lt;SPAN&gt;count.&lt;/SPAN&gt;&lt;SPAN&gt;total as key requests before do any query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But, if key requests are&amp;nbsp;aggregated at the service level I've to set key requests for any service on any server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case I've 5 servers and each server host about 300 services (with an average of 30 service methods each). I've to set key requests on any service of any server?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Thanks for your time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cespo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 06:47:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167626#M1296</guid>
      <dc:creator>Cespo</dc:creator>
      <dc:date>2021-06-15T06:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get Service Method and call numbers</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167627#M1297</link>
      <description>&lt;P&gt;So response.time and count.total are metrics. What you want is to set SearchCustomer as a key request, then the SearchCustomer request will be given its own performance metrics aside from the service.&lt;BR /&gt;If all of the services are named the same and belong to the same process group, then changing Search Customer to a key request for one service should change them for all hosts.&lt;/P&gt;&lt;P&gt;Otherwise, you'll have to do this for each request and service pairing you want to pull data for.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:05:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167627#M1297</guid>
      <dc:creator>trevor_masseng1</dc:creator>
      <dc:date>2021-06-15T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get Service Method and call numbers</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167628#M1298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;trevor_masseng1,&lt;/P&gt;&lt;P&gt;now it's clear.&amp;nbsp;Some services have the same name on different hosts and others do not.&lt;BR /&gt;I understood that I have to list the services and retrieve all the unique names and for each of them set Search Customer as a key request.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for all your help!&lt;BR /&gt;Cespo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:20:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Get-Service-Method-and-call-numbers/m-p/167628#M1298</guid>
      <dc:creator>Cespo</dc:creator>
      <dc:date>2021-06-15T07:20:49Z</dc:date>
    </item>
  </channel>
</rss>

