uptimeify_im_statuspage_rule
An Incident Management status page rule: incidents of team_id at min_severity or worse set the status page to target_state. Needs team-admin rights on the team (or organization admin). Manual overrides (POST /api/im/statuspage-rules/override) are an incident-time action and not managed by Terraform. Import with the numeric id.
An Incident Management status page rule: incidents of team_id at min_severity or worse set the status page to target_state. Needs team-admin rights on the team (or organization admin). Manual overrides (POST /api/im/statuspage-rules/override) are an incident-time action and not managed by Terraform. Import with the numeric id.
Example Usage
# sev1 incidents of the on-call team set the ACME status page to degraded,
# and reset it when the incident resolves.
resource "uptimeify_im_statuspage_rule" "acme" {
team_id = tonumber(uptimeify_im_team.oncall.id)
status_page_id = tonumber(uptimeify_status_page.acme.id)
min_severity = "sev1"
target_state = "degraded"
auto_resolve = true
}Schema
Required
status_page_id(Number) Numeric status page id of your organization.team_id(Number) Incident Management team of your organization.
Optional
auto_resolve(Boolean) Reset the page when the incident resolves. Defaulttrue.min_severity(String)sev1(most severe) tosev4. Defaultsev2.target_state(String)warningordegraded(default).
Read-Only
created_at(String)id(String) Numeric rule id.organization_id(Number)updated_at(String)
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import uptimeify_im_statuspage_rule.acme 17uptimeify_im_schedule_override
An override (vacation, swap) on an on-call schedule. Import with <schedule_id>/<override_id>.
uptimeify_im_team
An Incident Management team. Needs Incident Management activated for the organization. Members, escalation tiers and schedules are separate resources. Import with the numeric id.