# Correspondence of data resolution of timeseries api to time frame

**URL:** <https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [January 28, 2019, 6:41am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303 "2019-01-28T06:41:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kohei-saito](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kohei-saito/32/24190_2.png) [@kohei-saito](https://community.dynatrace.com/u/kohei-saito)\
**Post date:** [January 28, 2019, 6:41am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303/1 "2019-01-28T06:41:45Z")

</div>

Hi,

we’d like to know which timeframe we should set corresponding to specific data resolution.

For example, I know I can get timeseries data for 1-min resolution if I call some timeseries API with “relativeTime=hour”.

As this shows, when “relativeTime” is set as “hour”, the resolution is 1 min.

In another sample, we can get 10-min resolution if we choose “day” for “relativeTime”.

Thus, timeframe parameter(relativeTime/startTimestamp&endTimestamp) automatically determines data resolution.

Here, we would like to know, which timeframe we choose, which data retention we get.

Is there something like a table showing their correspondence?

Example like this:

| timeframe | min | hour | day |
| --- | --- | --- | --- |
| dataresolution | 1-min | 1-min | 10-min |

Regards,

Kohei

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [January 28, 2019, 7:59am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303/2 "2019-01-28T07:59:04Z")

</div>

I didn’t find any data about this. I think this is because each metrics can have different resolution in the same timeframe. So there should be such table for each of them or at least for groups. I think this is why you have field resolutionInMillisUTC in response which tells you about what you get.

Sebastian

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [May 10, 2019, 9:05am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303/3 "2019-05-10T09:05:57Z")

</div>

Hello,

I have do some tests for my needeed.

In order to have the most granularity on your data points (1 minute resolution) you have to request your API with a time frame less than 2 hours.

If you do that the resolutions are the followings :

datapoints \< 14days, resolution = 1 minute (“resolutionInMillisUTC”:  
60000)

14 days \< datapoints \< 1 month, resolution = 5 minutes (“resolutionInMillisUTC”:  
300000)

datapoints\> 1 month, resolution = 1 Hour (“resolutionInMillisUTC”: 3600000)

When your request the API with another timeframe (for datapoints \< 14 days) :

Last hour :“resolutionInMillisUTC”:  
60000, (1 minute)

Last 2 hours :“resolutionInMillisUTC”: 60000, (1  
minute)

Last 3 hours :“resolutionInMillisUTC”: 120000,(2 minutes)

Last 6 hours :“resolutionInMillisUTC”: 180000,(3 minutes)

Last day :“resolutionInMillisUTC”: 600000,(10 minutes)

I hope it will help some of you.

Regards, Aurélien.

---

<div class="post-metadata">

**Author:** ![kenichi\_kunimot](https://avatars.discourse-cdn.com/v4/letter/k/e495f1/32.png) [@kenichi\_kunimot](https://community.dynatrace.com/u/kenichi_kunimot)\
**Post date:** [May 24, 2019, 5:14am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303/4 "2019-05-24T05:14:32Z")

</div>

HI, AURELIEN

Thank you for your comment, it is helpful me too.

Is it same as a time scale of custom chart?

Regards,

Kei

---

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [May 24, 2019, 8:35am UTC](https://community.dynatrace.com/t/correspondence-of-data-resolution-of-timeseries-api-to-time-frame/19303/5 "2019-05-24T08:35:57Z")

</div>

Hello,

I talked about the API data resolution for time series.

But if you talk about the resolution on the graphical view (custom chart or service view) , I have selected a custom timeframe with a duration of 3 hours and I have a point every 2 minutes, so it seems to be the same.

Regards Aurélien.
