<?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 can I fetch average response time of a specific URI? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111260#M575</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;now I understand that we can fetch the average response time of services, for example, via the following TimeseriesAPI.&lt;/P&gt;&lt;PRE&gt;https://{your-environment-id}.live.dynatrace.com/api/v1/timeseries/com.dynatrace.builtin:service.responsetime?api-token=XXXXXXXXX&amp;amp;includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&amp;amp;entity=SERVICE-XXXXXXXXX&lt;/PRE&gt;&lt;P&gt;This returns the average of response time of a specific &lt;EM&gt;Service&lt;/EM&gt; named as "&lt;EM&gt;SERVICE-XXXXXXXXX&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;In the same way as this, is it possible to fetch the average response time of a specific URI?&lt;/P&gt;&lt;P&gt;If possible, which API should I use?&lt;/P&gt;&lt;P&gt;For now, I suppose that I can do this if I set target URLs as "Key requests" and use APIs corresponding to this "Key requests".&lt;/P&gt;&lt;P&gt;Is this assumption correct?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kohei&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jan 2019 07:43:40 GMT</pubDate>
    <dc:creator>kohei-saito</dc:creator>
    <dc:date>2019-01-08T07:43:40Z</dc:date>
    <item>
      <title>How can I fetch average response time of a specific URI?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111260#M575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;now I understand that we can fetch the average response time of services, for example, via the following TimeseriesAPI.&lt;/P&gt;&lt;PRE&gt;https://{your-environment-id}.live.dynatrace.com/api/v1/timeseries/com.dynatrace.builtin:service.responsetime?api-token=XXXXXXXXX&amp;amp;includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&amp;amp;entity=SERVICE-XXXXXXXXX&lt;/PRE&gt;&lt;P&gt;This returns the average of response time of a specific &lt;EM&gt;Service&lt;/EM&gt; named as "&lt;EM&gt;SERVICE-XXXXXXXXX&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;In the same way as this, is it possible to fetch the average response time of a specific URI?&lt;/P&gt;&lt;P&gt;If possible, which API should I use?&lt;/P&gt;&lt;P&gt;For now, I suppose that I can do this if I set target URLs as "Key requests" and use APIs corresponding to this "Key requests".&lt;/P&gt;&lt;P&gt;Is this assumption correct?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kohei&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2019 07:43:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111260#M575</guid>
      <dc:creator>kohei-saito</dc:creator>
      <dc:date>2019-01-08T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fetch average response time of a specific URI?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111261#M576</link>
      <description>&lt;P&gt;Hi. For a service you can also fetch the percentiles, etc. but to your question for a specific URL or also called 'key request' in Dynatrace you have to first 'subscribe' that specific endpoint within your UI service screen. Then you can fetch its metrics through providing a specific metric identifier which are: &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/19353-sm.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/19354-kr.png" /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jan 2019 07:56:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111261#M576</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-01-08T07:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fetch average response time of a specific URI?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111262#M577</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.dynatrace.com/users/12838/view.html" nodeid="12838"&gt;@Wolfgang B.&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;thanks for your prompt response!&lt;/P&gt;&lt;P&gt;After subscription of specific endpoint URIs at my Dynatrace tenant, I checked if I can retrieve response time of them or not, using such as the following API. &lt;/P&gt;&lt;PRE&gt;https://[your-environment-id].live.dynatrace.com/api/v1/timeseries/com.dynatrace.builtin:servicemethod.responsetime?api-token=xxxxxxxxx&amp;amp;includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&amp;amp;entity=SERVICE_METHOD-XXXXXXXX&lt;/PRE&gt;&lt;P&gt;Using this API, I could finally do what I wanted to do.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Appendix:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In addition to the above, I made some investigations as follows.&lt;/P&gt;&lt;P&gt;I'm glad if they are helpful for you!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case1: Without 'entity' of GET parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;example API&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;https://[your-environment-id].live.dynatrace.com/api/v1/timeseries/com.dynatrace.builtin:servicemethod.responsetime?api-token=xxxxxxxxx&amp;amp;includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;overview&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This returns response time of &lt;STRONG&gt;all URIs&lt;/STRONG&gt; subscribed as 'Key request' on the tenant.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This enables us to fetch all response time of 'Key request' at one time API call and it means that this can keep us from over-consuming API requests limit.&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case2: With entityID which is not subscribed as 'Key request' for 'entity'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;example API&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Here, let '&lt;EM&gt;SERVICE_METHOD-YYYYYYYYYY&lt;/EM&gt;' be not subscribed as 'Key request'&lt;/P&gt;&lt;PRE&gt;https://[your-environment-id].live.dynatrace.com/api/v1/timeseries/com.dynatrace.builtin:servicemethod.responsetime?api-token=xxxxxxxxx&amp;amp;includeData=true&amp;amp;relativeTime=hour&amp;amp;aggregationType=avg&amp;amp;entity=SERVICE_METHOD-YYYYYYYYYY&lt;/PRE&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;overview&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;This returns metric definitions of this &lt;EM&gt;timeseriesIdentifier &lt;/EM&gt;included in this api path&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;EM&gt;note) &lt;/EM&gt;Here '&lt;EM&gt;com.dynatrace.builtin:servicemethod.responsetime&lt;/EM&gt;' is indicated as &lt;EM&gt;timeseriesIdentifier&lt;/EM&gt;.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2019 04:34:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111262#M577</guid>
      <dc:creator>kohei-saito</dc:creator>
      <dc:date>2019-01-10T04:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fetch average response time of a specific URI?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111263#M578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes that behaviour is by design. What you can also do is to use the service ID within the entity filter which will report all subscribed service requests for that selected parent service. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2019 09:14:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111263#M578</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-01-10T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fetch average response time of a specific URI?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111264#M579</link>
      <description>&lt;P&gt;Great!&lt;/P&gt;&lt;P&gt;Certainly, with &lt;EM&gt;com.dynatrace.builtin:servicemethod.responsetime, &lt;/EM&gt;when I assign a specific service ID for entity filter&lt;EM&gt;, &lt;/EM&gt;I can get response time of all of 'Key request' associated with service within that entity filter.&lt;/P&gt;&lt;P&gt;Thanks for details!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2019 02:14:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/How-can-I-fetch-average-response-time-of-a-specific-URI/m-p/111264#M579</guid>
      <dc:creator>kohei-saito</dc:creator>
      <dc:date>2019-01-11T02:14:19Z</dc:date>
    </item>
  </channel>
</rss>

