# HeartBeat complex time range

**URL:** https://discuss.elastic.co/t/heartbeat-complex-time-range/276795
**Category:** Synthetics
**Created:** [June 23, 2021, 1:27pm UTC](https://discuss.elastic.co/t/heartbeat-complex-time-range/276795 "2021-06-23T13:27:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zerlas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zerlas/32/90698_2.png) [@zerlas](https://discuss.elastic.co/u/zerlas)
#### Post date: [June 23, 2021, 1:27pm UTC](https://discuss.elastic.co/t/heartbeat-complex-time-range/276795/1 "2021-06-23T13:27:56Z")

</div>

Hi,

I'm looking for help about using a custom time range for monitoring uptime of some services over http using heartbeat.

I want to set for the following time range : 8-12:30 and 13:30-18 (every minute should be good in this range)  
Some of you know how i can do that ?  
Using cron i was only able to set the following :

- schedule : '\* 8-12,13-18 \* \* 1-5'

Can we use multiple time ranges on one schedule ? if yes what is the right separator to use ?

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [June 23, 2021, 5:42pm UTC](https://discuss.elastic.co/t/heartbeat-complex-time-range/276795/2 "2021-06-23T17:42:08Z")

</div>

We only support a single cron definition.

Can you share your use case? Why do you not want it monitored continuously? That would help us understand if a new feature might make sense

---

<div class="post-metadata">

### Author: ![zerlas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zerlas/32/90698_2.png) [@zerlas](https://discuss.elastic.co/u/zerlas)
#### Post date: [June 23, 2021, 6:16pm UTC](https://discuss.elastic.co/t/heartbeat-complex-time-range/276795/3 "2021-06-23T18:16:52Z")

</div>

A Client want us to give him a SLA metrics only for the working hours mentionned before.  
on the others times ranges, we are able to let the website drop for maintenance purposes.  
So can we discuss about handling multiples cron expression or maybe just being able to let it monitoring 24/24-7/7 and later selecting a time range and then calculating the SLA for this range only ?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 14, 2021, 2:17pm UTC](https://discuss.elastic.co/t/heartbeat-complex-time-range/276795/4 "2021-07-14T14:17:12Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
