Ressourcen
uptimeify_im_statuspage_rule
Ressource uptimeify_im_statuspage_rule: Beispiel, alle Attribute, Import.
Die Beschreibungen auf dieser Seite kommen direkt aus dem Provider-Schema und sind deshalb englisch.
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.
Beispiel
# 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
Pflichtfelder
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).
Nur lesbar
created_at(String)id(String) Numeric rule id.organization_id(Number)updated_at(String)
Import
Import geht so:
Mit tofu import bzw. terraform import, zum Beispiel:
terraform import uptimeify_im_statuspage_rule.acme 17