Schedule with Business and Off Hours

On-call schedule with different rotations for business hours and off hours

Scenario:

During business hours (weekdays 09:00-18:00), all members of DevOps Team are notified for alerts. In the evenings and on weekends, Elizabeth, Darren, and Ibrahim share the on-call duty, rotating daily.

Business-hours Rotation

  1. On your Team's dashboard, under the Main tab access the module for On-Call Schedules, click on the "Add Schedule" button.
  2. Give the schedule a Name. Names can only contain alphanumeric characters, dots, underscores, and dashes. In this scenario, a schedule named ”businesshours_offhours” will be created. Select this name when setting up alerts recipients to have alerts sent to the appropriate on-call responders.
  3. Select the appropriate Time zone and save.
779
  1. Click the plus button near “Rotations” to begin populating an on-call schedule. In this example, we will create two rotations: one for business hours and one for off hours.
314

Business hours
5. Input Start date and time to indicate when the first schedule rotation becomes active. Schedule rotations are calculated beginning from this date and time, so ensure you have chosen the appropriate turnover time for rotations (e.g., start of business day at 09:00 vs. start of actual day at 00:00). In this scenario, the weekday rotation begins at open of business on Monday morning, so 09:00 is selected as the start time.
6. Select Participants. Participants may be users, teams, and escalations. In this example, all members of a pre-defined team, the DevOps Team, are to be notified based on team’s routing rules, escalations and on-call schedules. Your group is assigned a color and is represented with that color in the schedule preview.
7. Select rotation. In this example, DevOps Team is always on call during work hours. There is no rotation of responsibility, so “daily,” “weekly,” or “custom” may be selected, but you must define business hours. Toggle the switch for “Restrict to time intervals”. Now, identify business hours; you must input hours for each day. For example, Monday 09:00 to Monday 18:00; Click the plus sign to specify additional business hours, e.g. Tuesday 09:00 to Tuesday 18:00. If you were instead to specify Monday 09:00 to Friday 18:00, you would include evening hours Monday through Thursday in the time period.

968
  1. Verify the schedule. As rotations are defined, Opsgenie automatically calculates and displays who will be on-call and when.
1313
  1. Click “Save” to save the rotation that specifies business hours notification policy.

Off-hours Rotation

  1. Click add rotation button again to specify an off-hours rotation.
  2. Select Participants. In this example, Elizabeth, Darren, and Ibrahim share on-call duties during off-hours. Change the order of the participants by dragging and dropping the participants in the list. Each participant is assigned a color and is represented by that color in the schedule preview.
  3. Select rotation. In this example, Elizabeth, Darren, and Ibrahim rotate on-call responsibility daily in the evenings and on weekends. First, select “daily” to indicate the length of the rotation. Second, specify off-hour time periods by toggling the switch for "Restrict to time intervals". Identify off-hours by day. For example, Monday 18:00 to Tuesday 09:00; Tuesday 18:00 to Wednesday 09:00. Click the plus sign to specify additional business hours. Make sure to capture the weekend with Friday 18:00 to Monday 09:00.

👍

Make sure the Start On time corresponds with when you want the rotations to start (such as 09:00 in this example), otherwise you may end up with a disproportionate on-call shift where the next on-call user is finishing the last hour of the previous shift. You will know it is configured correctly if the blocks consist of one single on-call responder for a given shift.

968
  1. Verify the schedule.
961
  1. Click “Save” to save the rotation that specifies off-hours notification policy.
  2. You can go back to the On-Call Schedule module (Under the Main tab of your Team dashboard) and open, export, clone, edit, or delete your on-call schedules.
1033