# Service Level Objective, timeframe expressions for business hours only?

**URL:** <https://community.dynatrace.com/t/service-level-objective-timeframe-expressions-for-business-hours-only/33034>\
**Category:** Automations\
**Tags:** slo, maintenance-window\
**Created:** [October 19, 2021, 2:01pm UTC](https://community.dynatrace.com/t/service-level-objective-timeframe-expressions-for-business-hours-only/33034 "2021-10-19T14:01:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsmsdk](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@rsmsdk](https://community.dynatrace.com/u/rsmsdk)\
**Post date:** [October 19, 2021, 2:01pm UTC](https://community.dynatrace.com/t/service-level-objective-timeframe-expressions-for-business-hours-only/33034/1 "2021-10-19T14:01:28Z")

</div>

Hi everyone

**Case:**  
I have a backend service that need to deliver high performance response times during business hours, but outside business hours also is&nbsp;(knowingly and accepted) impacted by batch activity&nbsp;🤠&nbsp;I want a Service Level Objective for the service, but only have it evaluate data within business hours.

**Question:**  
Is it possible to set the&nbsp;Service Level Objtective timeframe expressions for fixed business hours only? I have tried a few things with the example expressions, but can not get it to work. The SLO is based on custom metrics, but I dont find an option to set at time limit here either.

Lets say I want my Service Level Objective to evaluate the last week, but only between 9am to 5pm?

Best regards

Rasmus

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 19, 2021, 7:28pm UTC](https://community.dynatrace.com/t/service-level-objective-timeframe-expressions-for-business-hours-only/33034/2 "2021-10-19T19:28:40Z")

</div>

[@rsmsdk](https://community.dynatrace.com/user/42071),

I organized a quite extensive discussion here about Business Hours:

[https://community.dynatrace.com/t5/Dynatrace-Open-Q-A/Business-Hours-in-Dynatrace/m-p/119921](https://community.dynatrace.com/post/119921#M12734)

I also put an RFE at:

[https://community.dynatrace.com/t5/Dynatrace-product-ideas/RFE-Support-for-Business-Hours-in-timeframe-selector/idi-p/154613](https://community.dynatrace.com/post/154613)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [March 19, 2024, 7:42am UTC](https://community.dynatrace.com/t/service-level-objective-timeframe-expressions-for-business-hours-only/33034/3 "2024-03-19T07:42:40Z")

</div>

See my tip&nbsp;[https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Business-hours-in-Dynatrace-for-SLOs-or-metric-events/m-p/240367#M1202](https://community.dynatrace.com/post/240367#M1202)
