Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.69 KB

site_alert.md

File metadata and controls

57 lines (41 loc) · 1.69 KB
page_title subcategory description
sigsci_site_alert Resource - terraform-provider-sigsci

sigsci_site_alert (Resource)

Example Usage

resource "sigsci_site_alert" "test" {
  site_short_name        = sigsci_site.my-site.short_name
  tag_name               = sigsci_site_signal_tag.test_tag.id
  long_name              = "test_alert"
  interval               = 10
  threshold              = 12
  enabled                = true
  action                 = "info"
  skip_notifications     = true
  block_duration_seconds = 3600
}

Schema

Required

  • action (String) A flag that describes what happens when the alert is triggered. 'info' creates an incident in the dashboard. 'flagged' creates an incident and blocks traffic for 24 hours. Must be info or flagged.
  • interval (Number) The number of minutes of past traffic to examine. Must be 1, 10 or 60.
  • site_short_name (String) Site short name
  • tag_name (String) The name of the tag whose occurrences the alert is watching. Must match an existing tag
  • threshold (Number) The number of occurrences of the tag in the interval needed to trigger the alert. Min 1, Max 10000

Optional

  • block_duration_seconds (Number) The number of seconds this alert is active.
  • enabled (Boolean) A flag to toggle this alert.
  • long_name (String) description
  • skip_notifications (Boolean) A flag to skip notifications

Read-Only

  • id (String) The ID of this resource.

Import

Import is supported using the following syntax:

terraform import sigsci_site_alert.test site_short_name:id