uptimeify_im_escalation_tier
An escalation tier of an Incident Management team. Creating a tier also creates its default schedule (default_schedule_id, rotation mode none) whose single rotation is member_user_ids; further schedules of the tier are uptimeify_im_schedule. Import with <team_id>/<tier_id>.
An escalation tier of an Incident Management team. Creating a tier also creates its default schedule (default_schedule_id, rotation mode none) whose single rotation is member_user_ids; further schedules of the tier are uptimeify_im_schedule. Import with <team_id>/<tier_id>.
Example Usage
resource "uptimeify_im_escalation_tier" "first" {
team_id = uptimeify_im_team.platform.id
tier_order = 1
member_user_ids = [uptimeify_im_team_member.alice.user_id]
auto_escalation_after_minutes = 10
auto_escalation_severities = ["critical", "warning"]
# Escalate automatically only on weekdays, office hours.
auto_escalation_time_filters = [
{ from = "08:00", until = "18:00", days = [1, 2, 3, 4, 5] },
]
}
resource "uptimeify_im_escalation_tier" "second" {
team_id = uptimeify_im_team.platform.id
tier_order = 2
member_user_ids = [uptimeify_im_team_member.bob.user_id]
}Schema
Required
member_user_ids(List of String) Team members on the default schedule's rotation, in order (1 to 200 user ids). Changing it replaces all rotation groups of the default schedule.team_id(Number)
Optional
auto_escalation_after_minutes(Number) Minutes before escalating to the next tier. Default5.auto_escalation_enabled(Boolean) Defaulttrue.auto_escalation_severities(Set of String) Severities that escalate:critical,warning,minor. Unset = all.auto_escalation_stop_mode(String)acknowledgedorresolved. Defaultacknowledged.auto_escalation_time_filters(Attributes List) Weekly windows in which auto-escalation runs. Empty (default) = always. (see below for nested schema)repeats(Number) Extra pages on this tier before moving on. Default0.repeats_after_minutes(Number) Minutes between repeats; unset =auto_escalation_after_minutes.repeats_stop_mode(String)acknowledgedorresolved. Defaultacknowledged.tier_order(Number) Position in the team's ladder, 1 = paged first. Unset = appended at the end. On create the tier is inserted there (tiers at or after it move down by one); a later change reorders the team's tiers (POST .../tiers/reorder). Both move the other tiers too: when you set it, set it on every tier of the team, as 1..n. A value larger than the number of tiers ends up as the last position.
Read-Only
default_schedule_id(Number) Schedule the API created with the tier. Do not also manage it asuptimeify_im_schedule.id(String)<team_id>/<tier_id>.tier_id(Number) Numeric tier id.
Nested Schema for auto_escalation_time_filters
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:
# <team_id>/<tier_id>
terraform import uptimeify_im_escalation_tier.first 12/56uptimeify_im_channel
An Incident Management paging channel (Slack incoming webhook, generic webhook or email). Escalation tiers and the organization fallback page through it. Incident Management must be active for the organization. The webhook URL and header values are secrets: the API never returns them, so they are write-only here. Import with the numeric id.
uptimeify_im_org_settings
Incident Management settings of the token's organization (one per organization). Creating it adopts the existing settings and applies the configured values; destroying it only removes it from the state, the settings stay. Import with any id, e.g. org.