# Peak hour Search volume using API

**URL:** <https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [July 13, 2018, 4:15pm UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734 "2018-07-13T16:15:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muthukumar\_peri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/muthukumar_peri/32/8740_2.png) [@muthukumar\_peri](https://community.dynatrace.com/u/muthukumar_peri)\
**Post date:** [July 13, 2018, 4:15pm UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/1 "2018-07-13T16:15:20Z")

</div>

Hi All,

I have a requirement to find the count of peak hour search volume. We used to have it in AppMon and we migrated to Dynatrace now and we are missing this function. Currently Dynatrace provides number of requests per minute but I’m not able to find hourly max kind of things. I tried with Dynatrace API and it’s not working out as per my requirement.

Can anyone help with this?

Regards

Muthu

---

<div class="post-metadata">

**Author:** ![nj\_njoku](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nj_njoku/32/13710_2.png) [@nj\_njoku](https://community.dynatrace.com/u/nj_njoku)\
**Post date:** [July 13, 2018, 7:16pm UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/2 "2018-07-13T19:16:12Z")

</div>

Hi Muthu,

Have you tried using the timeseries **com.dynatrace.builtin:service.**** requests **with the** COUNT** aggregation? This should give you the volume for the time-frame you want.

Thanks

NJ

---

<div class="post-metadata">

**Author:** ![muthukumar\_peri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/muthukumar_peri/32/8740_2.png) [@muthukumar\_peri](https://community.dynatrace.com/u/muthukumar_peri)\
**Post date:** [July 14, 2018, 4:15pm UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/3 "2018-07-14T16:15:16Z")

</div>

Hi Ugochukwu,

Thank you for your reply. I’m trying with the same timeseries **com.dynatrace.builtin:servicemethod.server\_side\_requests** with the aggregation as **COUNT**. Along with that I’m including the **relativeTime** as **week**. It is returning the results on hourly basis. In the query I’m adding **queryMode=max** to list only the max value but the filter is not returning only max instead lists values of all hours in that day.

I would like to list only the max count in a particular hour for that day. Is there anything you can suggest on this?

Thanks

Muthu

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [July 16, 2018, 5:38am UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/4 "2018-07-16T05:38:47Z")

</div>

Your request returned each MAX value for each of the hours within the series. If you would like to get a single value for max in a week you have to use parameter **aggregationType=max** and **queryMode=total**

---

<div class="post-metadata">

**Author:** ![muthukumar\_peri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/muthukumar_peri/32/8740_2.png) [@muthukumar\_peri](https://community.dynatrace.com/u/muthukumar_peri)\
**Post date:** [July 17, 2018, 10:57am UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/5 "2018-07-17T10:57:52Z")

</div>

Hi Wolfgang, when I change the aggreationType=max and queryMode=total, the API is failing says _“The aggregation type is not allowed for the given timeseries id.”_

---

<div class="post-metadata">

**Author:** ![sjoly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sjoly/32/25284_2.png) [@sjoly](https://community.dynatrace.com/u/sjoly)\
**Post date:** [October 12, 2018, 1:12pm UTC](https://community.dynatrace.com/t/peak-hour-search-volume-using-api/13734/6 "2018-10-12T13:12:37Z")

</div>

Hi,

Muthukumar P.,

For timeseries type **requests** only **aggregationType=COUNT** is available for **Services**  **Built-in metrics**. That’s why you have this error message.

I have investigate to find a solution for your request _“I would like to list only the max count in a particular hour for that day.”._ In my opinion Dynatrace API don’t give that possibility for the moment.

###
