diff --git a/newrelic/resource_newrelic_nrql_alert_condition.go b/newrelic/resource_newrelic_nrql_alert_condition.go index ed4cf1a80..a429009c4 100644 --- a/newrelic/resource_newrelic_nrql_alert_condition.go +++ b/newrelic/resource_newrelic_nrql_alert_condition.go @@ -33,8 +33,8 @@ func termSchema() *schema.Resource { Type: schema.TypeString, Optional: true, Default: "equals", - Description: "One of (above, below, equals). Defaults to 'equals'.", - ValidateFunc: validation.StringInSlice([]string{"above", "below", "equals"}, true), + Description: "One of (above, above_or_equals, below, below_or_equals, equals, not_equals). Defaults to 'equals'.", + ValidateFunc: validation.StringInSlice([]string{"above", "above_or_equals", "below", "below_or_equals", "equals", "not_equals"}, true), DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { return strings.EqualFold(old, new) }, diff --git a/website/docs/r/nrql_alert_condition.html.markdown b/website/docs/r/nrql_alert_condition.html.markdown index 82e3824be..d3be0aa2a 100644 --- a/website/docs/r/nrql_alert_condition.html.markdown +++ b/website/docs/r/nrql_alert_condition.html.markdown @@ -115,7 +115,7 @@ NRQL alert conditions support up to two terms. At least one `term` must have `pr The `term` block supports the following arguments: -- `operator` - (Optional) Valid values are `above`, `below`, or `equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`. +- `operator` - (Optional) Valid values are `above`, `above_or_equals`, `below`, `below_or_equals`, `equals`, or `not_equals` (case insensitive). Defaults to `equals`. Note that when using a `type` of `outlier` or `baseline`, the only valid option here is `above`. - `priority` - (Optional) `critical` or `warning`. Defaults to `critical`. - `threshold` - (Required) The value which will trigger a violation.
For _baseline_ NRQL alert conditions, the value must be in the range [1, 1000]. The value is the number of standard deviations from the baseline that the metric must exceed in order to create a violation.