# Create On-call schedule

## Key components

A simple on-call schedule comprises of layers (*we will get into this on the next page*) and each layer will have the below components

1. **Team members** who will be on-call
2. **Rotation** determines the duration of an on-call shift
3. **Handoff** is the time when the shift rotates
4. **Slots** to break a shift into times of day/week that works for you

## Creating a schedule

Visit [On-call section](https://app.spike.sh/on-calls) from Spike's dashboard.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-ef88c9943ee9a27338c79acea23b3820f4d43452%2Foncall-create-2.png?alt=media\&token=4149f037-5fe5-492c-9aba-cc0c3e661a1b)

Click **New schedule**

### Let's create our first on-call schedule

#### **Step 1: Add members**

Should be at least one member. The order of members is the order of members going on-call one at a time.

{% hint style="info" %}
Use the live preview on-call calendar while creating the schedule
{% endhint %}

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-ad0e8d384292eb31043f5534ac70ee1d8361edec%2Foncall-members-1.png?alt=media\&token=50df6972-f7d0-445b-9f72-0b3efa60082e)

You can choose ro re-arrange the sequence of members while creating or editing. This will decide the sequence of members going on-call.

{% embed url="<https://www.youtube.com/watch?v=ECDlUwC3oKc&ab_channel=Spike>" %}

#### **Step 2: Select rotation -**

Choose a rotation type that works for your team.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-4fe839c1cd290d529ccbab5e6c791662598a7a5c%2Foncall-rotation-1.png?alt=media\&token=47b7fd60-110a-4989-aa82-b65fcffab0f6)

#### **Step 3: Add handoff time**

Handoff time is the time of day when previous person's on-call time ends and the next person's begins.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-4754ed965ae4b8616987894385f17273a9ec2a7d%2Foncall-handoff-1.png?alt=media\&token=f76ed297-961e-4a7b-86c9-b62889104fa7)

This is how our daily rotational oncall form would look like -

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-b5d80e7a821e0a24333f469e6202baf9f1845d28%2Foncall-form.png?alt=media\&token=57f9beab-4268-493c-b1c9-6f4cc8ae2058)

The above on-call schedule has 2 members, rotates daily and the shift changes at 11:00 AM everyday. This also means our team members will be on-call for 24 hours straight.

![](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-aa1b4d5abf08f1da5414c180ade2c2bce51ba774%2Foncall-calendar-after-creating-schedules.png?alt=media\&token=5b4a6369-05e5-40eb-a405-7798c7b815d8)

The calendar will give you a perfect understanding of who's on-call at any given time of any date. You can choose to navigate and plan your dates accordingly too.

## Using the schedule in an escalation policy

Creating a schedule means nothing if you alerts are not being send to the one who is on-call. To do so, head over to your escalation policy and choose to either create one or edit an existing escalation policy.

![Above created on-calls schedule is added multiple times in a single escalation policy](https://1743514643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ln3jS1bJTTsE3yoEcOu%2Fuploads%2Fgit-blob-fb5257ab16e89262d474afece54775a423438e2d%2Foncall-escalation.png?alt=media\&token=0aa94009-1bd2-4cec-93ec-30596fbac03f)

You can choose to add Schedule just like you would any user to a policy with the alert channel.

{% hint style="success" %}
Once added, you can treat the schedules just like users and add them at any step in escalation policy. However, we would recommend adding them in the first step so as to route the alerts directly to the on-call person.
{% endhint %}
