Skip to content

Commit

Permalink
Merge pull request #395 from terraform-providers/alertConditionScopeO…
Browse files Browse the repository at this point in the history
…ptional

fix(alert_condition): mark condition_scope optional
  • Loading branch information
zlesnr authored Feb 12, 2020
2 parents 48eb153 + e131096 commit 62e4b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion newrelic/resource_newrelic_alert_condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func resourceNewRelicAlertCondition() *schema.Resource {
},
"condition_scope": {
Type: schema.TypeString,
Required: true,
Optional: true,
},
"violation_close_timer": {
Type: schema.TypeInt,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/alert_condition.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The following arguments are supported:
* `type` - (Required) The type of condition. One of: `apm_app_metric`, `apm_jvm_metric`, `apm_kt_metric`, `servers_metric`, `browser_metric`, `mobile_metric`
* `entities` - (Required) The instance IDS associated with this condition.
* `metric` - (Required) The metric field accepts parameters based on the `type` set.
* `condition_scope` - (Required) `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
* `condition_scope` - (Required for some types) `application` or `instance`. Choose `application` for most scenarios. If you are using the JVM plugin in New Relic, the `instance` setting allows your condition to trigger [for specific app instances](https://docs.newrelic.com/docs/alerts/new-relic-alerts/defining-conditions/scope-alert-thresholds-specific-instances).
* `gc_metric` - (Optional) A valid Garbage Collection metric e.g. `GC/G1 Young Generation`. This is required if you are using `apm_jvm_metric` with `gc_cpu_time` condition type.
* `violation_close_timer` - (Optional) Automatically close instance-based violations, including JVM health metric violations, after the number of hours specified. Must be: `1`, `2`, `4`, `8`, `12` or `24`.
* `runbook_url` - (Optional) Runbook URL to display in notifications.
Expand Down

0 comments on commit 62e4b10

Please sign in to comment.