# SLO: Assigning Different Score Weights Based on Response Time

**URL:** <https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477>\
**Category:** Automations\
**Tags:** slo\
**Created:** [December 23, 2024, 3:10pm UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477 "2024-12-23T15:10:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [December 23, 2024, 3:10pm UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/1 "2024-12-23T15:10:32Z")

</div>

Good afternoon, community,

I would like to create an SLO based on response time with a graded scoring system rather than a binary approach. Specifically, the logic should function as follows:

- **Response Time \> 700ms** : Score = 0
- **Response Time between 700ms and 500ms** : Score = 0.8
- **Response Time \< 500ms** : Score = 1 (100%)

Is it possible to implement this logic in a SLO?

Thank you in advance for your guidance.

Best regards,

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 23, 2024, 3:29pm UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/2 "2024-12-23T15:29:02Z")

</div>

Would this work?&nbsp;[SLO service: Creating global SLOs](https://www.dynatrace.com/news/blog/slo-service-creating-global-slos/)

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [December 23, 2024, 3:54pm UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/3 "2024-12-23T15:54:00Z")

</div>

Similar way of thinking but not exactly this.  
Assign different weight within the same service SLO would be the goal:

_For example:_  
Within the same service you define one performance SLO, and within that you assign different weights.  
X% of the request below 500 milliseconds (ms). --\> w =1 (success)

X% of the request between 500 and 700 milliseconds (ms). --\> w =0.8 (mild success)

X% of the request above 700 milliseconds (ms). --\> w =0 (not successful)

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 24, 2024, 8:18am UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/4 "2024-12-24T08:18:23Z")

</div>

Try creating 3 slo -

- under500
- under700
- above700

Each SLO will create a metric func:sloxxxx

create a new SLO using this 3 metrics (1\*slo-under500 + 0.8\*slounder700 + 0\*sloabove700)/3

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [December 25, 2024, 4:45am UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/5 "2024-12-25T04:45:50Z")

</div>

Hello&nbsp;[@y\_buccellato](https://community.dynatrace.com/user/4804)

As per Dynatrace docs, and provided guidance by&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713)

- [Service-Level Objectives basics (SLOs Classic) — Dynatrace Docs](https://docs.dynatrace.com/docs/deliver/service-level-objectives-classic/slo-basics)
- [Configure and monitor service-level objectives (SLOs Classic) — Dynatrace Docs](https://docs.dynatrace.com/docs/deliver/service-level-objectives-classic/configure-and-monitor-slo)
- [Example configuration of service-level objective definitions (SLOs Classic) — Dynatrace Docs](https://docs.dynatrace.com/docs/deliver/service-level-objectives-classic/slo-definition-configuration-examples)

You can proceed with the suggested&nbsp;😉 solution&nbsp;😊.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [January 23, 2025, 8:19am UTC](https://community.dynatrace.com/t/slo-assigning-different-score-weights-based-on-response-time/49477/6 "2025-01-23T08:19:59Z")

</div>

This is a viable solution and will accept it although it leads to the creation of multiple SLO instead of a single one (which was my ideal set up - to not create too many config instead just have one config, very efficient including all the logic)
