Skip to content

Commit

Permalink
Merge pull request #1797 from founddrama/feat/nrql-condition-threshol…
Browse files Browse the repository at this point in the history
…d-operators

Feat/nrql condition threshold operators
  • Loading branch information
sanderblue authored May 12, 2022
2 parents 7bfc8be + ccfaacf commit 79e4a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions newrelic/resource_newrelic_nrql_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/nrql_alert_condition.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<br>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.
Expand Down

0 comments on commit 79e4a10

Please sign in to comment.