Uptimeify Docs
Resources

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. Default true.
  • min_severity (String) sev1 (most severe) to sev4. Default sev2.
  • target_state (String) warning or degraded (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 17

On this page