# Set resolution to SLO

**URL:** <https://community.dynatrace.com/t/set-resolution-to-slo/42018>\
**Category:** Automations\
**Tags:** dynatrace-managed, slo\
**Created:** [October 10, 2023, 8:46pm UTC](https://community.dynatrace.com/t/set-resolution-to-slo/42018 "2023-10-10T20:46:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramondepieri](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@ramondepieri](https://community.dynatrace.com/u/ramondepieri)\
**Post date:** [October 10, 2023, 8:46pm UTC](https://community.dynatrace.com/t/set-resolution-to-slo/42018/1 "2023-10-10T20:46:33Z")

</div>

Hey guys,

I am creating a new SLO using the dynatrace feature. Before that, I have created and testing my metrics on dynatrace data explorer

So I have something like that:

```markup
builtin:service.requestCount.total:filter(in("dt.entity.service",entitySelector("type(service),tag(~"CONTAINER:my-container-name~")")))

```

This brings to me a total of requests as you can see

 ![resolution_1m.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/2/12cfeb47bc4f9286a285a97780fe2baa5a5c4978.png)

But I need to get the total amount in a different resolution, instead of 1 minute. I need to a 5 minutes resolution. In the data explorer, there is a resolution field on Settings that I can change it easily

 ![resolution_5m.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/1600a5e0d52b2fa56efd87a50ae2793367e4ca15.png)

Its works!

But now I need to use this in my SLO. For example:

```markup
((builtin:service.requestCount.total:filter(in("dt.entity.service",entitySelector("type(service),tag(~"CONTAINER:my-container-name~")"))):partition("latency",value("good",gt(1000))):splitBy():count:default(0)) / (1 *100))

```

Everything is ok. I mean the results of this query is ok. But the problem is that the SLO resolution is 1 minute and this affects the SLO result. Is it possible to change the SLO resolution to other value than 1 ?

PS.: I already know that dynatrace works with auto resolution according to the time range that is selected. But in this scenario is not useful for me. I would like to set my own SLO resolution

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [June 5, 2024, 8:22am UTC](https://community.dynatrace.com/t/set-resolution-to-slo/42018/2 "2024-06-05T08:22:24Z")

</div>

Hello Ramon,

I don’t know of any way to change the SLO resolution to other value.

To transform the data and make it similar to what you wanted maybe try using&nbsp;the [Rollup transformation](https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-selector#rollup). It’ll&nbsp;smooth the data points, removing any spikes from the requested timeframe, so you will have aproximetly the same experience as using the Resolution.

Fo the documentation: “the transformation takes a data point, adds the four previous data point to form a rollup window, and then uses the average of these five datapoints to calculate the final datapoint value.” so you cab use it like the next code to simulate a resolution of 5 min:

```markup
builtin:service.requestCount.total:splitBy():sort(value(auto,descending)):rollup(sum,5m)

```

 ![jaume_reverte_0-1717575595685.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/09e8b29dc99405bd7c6dd9b23098fa8b54aaca80.png)

Hope this helps!
