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. message is the public text until the
# incident gets its first status page update.
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
message = "We are investigating an outage and will post updates here."
}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.message(String) Public text shown on the status page while this rule's override is active and the incident has no status page update yet. Up to 5000 characters, no surrounding whitespace (the API trims). Unset = no text.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_service
A service of the Incident Management service catalog ("Webshop", "Customer portal") with its criticality, the responsible team and its monitors. An incident of a monitor that belongs to exactly one service is linked to that service. Needs an organization token of an organization admin. Import with the numeric id or the public 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.