uptimeify_im_schedule
An on-call schedule on an escalation tier (created via POST /api/im/tiers/{tierId}/schedules). Rotation members must be members of the tier's team. The tier's own default schedule belongs to uptimeify_im_escalation_tier. Import with the numeric schedule id.
An on-call schedule on an escalation tier (created via POST /api/im/tiers/{tierId}/schedules). Rotation members must be members of the tier's team. The tier's own default schedule belongs to uptimeify_im_escalation_tier. Import with the numeric schedule id.
Example Usage
# Weekly rotation, handover Monday 09:00 Berlin time.
resource "uptimeify_im_schedule" "weekly" {
tier_id = uptimeify_im_escalation_tier.first.tier_id
name = "Weekly on-call"
timezone = "Europe/Berlin"
rotation_mode = "explicit"
rotation_repeats = "weekly"
starts_on_day_of_week = 1
starts_on_time = "09:00"
rotations = [
{ members = [uptimeify_im_team_member.alice.user_id] },
{ members = [uptimeify_im_team_member.bob.user_id] },
]
}Schema
Required
name(String) 1 to 120 characters.tier_id(Number) Escalation tier (uptimeify_im_escalation_tier.x.tier_id). Changing it replaces the schedule.timezone(String) IANA zone the handovers and weekly windows are read in, e.g.Europe/Berlin.
Optional
auto_rotation_size(Number) For modeauto: members per generated rotation group.custom_repeat_unit(String) Forcustom:minutes,hours,days,weeksormonths.custom_repeat_value(Number) Forcustom: how many units.effective_from(String) Start of validity. RFC3339 timestamp; unset = unbounded. The API answers in UTC with milliseconds, another spelling of the same instant is kept as written.effective_until(String) End of validity. RFC3339 timestamp; unset = unbounded. The API answers in UTC with milliseconds, another spelling of the same instant is kept as written.rotation_mode(String)none(default),autoorexplicit.autoandexplicitneedrotation_repeatsandstarts_on_time.rotation_repeats(String)daily,weekly,biweekly,monthlyorcustom; must be unset for modenone.rotations(Attributes List) Ordered rotation groups (at most 50). Every member must be a member of the team. (see below for nested schema)round_robin_size(Number) Members on call at the same time. Default1.starts_on_date_of_month(Number) Handover day 1-31 for monthly and custom-months rotations.starts_on_day_of_week(Number) Handover weekday (ISO 1-7) for weekly, biweekly and custom-weeks rotations.starts_on_time(String) Handover timeHH:mm; required unless modenone.weekly_schedules(Attributes List) Weekly windows the schedule covers. Empty (default) = around the clock. (see below for nested schema)
Read-Only
id(String) Numeric schedule id.team_id(Number) Team of the tier.
Nested Schema for rotations
Required:
members(List of String) User ids in order, at most 200, no duplicates.
Nested Schema for weekly_schedules
Required:
days(List of Number) ISO weekdays, 1 = Monday to 7 = Sunday.from(String)HH:mm.until(String)HH:mmor24:00.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Numeric schedule id
terraform import uptimeify_im_schedule.weekly 78uptimeify_im_routing_rule
An Incident Management routing rule: incidents whose alert matches go to team_id. Rules run in ascending priority. Incident Management must be active for the organization. Import with the numeric id.
uptimeify_im_schedule_override
An override (vacation, swap) on an on-call schedule. Import with <schedule_id>/<override_id>.