Skip to content

Commit

Permalink
Add type: escalation to responders block in alert policy resource
Browse files Browse the repository at this point in the history
Closes: opsgenie#293
  • Loading branch information
janhorstmann committed Dec 12, 2022
1 parent 305103d commit 2ea59c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opsgenie/resource_opsgenie_alert_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func resourceOpsGenieAlertPolicy() *schema.Resource {
"type": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"user", "team"}, false),
ValidateFunc: validation.StringInSlice([]string{"user", "team", "escalation"}, false),
},
"name": {
Type: schema.TypeString,
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/alert_policy.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ The following arguments are supported:

* `ignore_original_responders` - (Optional) If set to `true`, policy will ignore the original responders of the alert. Default: `false`

* `responders` - (Optional) Responders to add to the alerts original responders value as a list of teams, users or the reserved word none or all. If `ignore_original_responders` field is set to `true`, this will replace the original responders. The possible values for responders are: `user`, `team`. This is a block, structure is documented below.
* `responders` - (Optional) Responders to add to the alerts original responders value as a list of teams, users or the reserved word none or all. If `ignore_original_responders` field is set to `true`, this will replace the original responders. The possible values for responders are: `user`, `team`, `escalation`. This is a block, structure is documented below.

* `ignore_original_tags` - (Optional) If set to `true`, policy will ignore the original tags of the alert. Default: `false`

Expand Down Expand Up @@ -148,7 +148,7 @@ The `restriction` block supports:

The `responders` block supports:

* `type` - (Required) Type of responder. Acceptable values are: `user` or `team`
* `type` - (Required) Type of responder. Acceptable values are: `user`, `team` or `escalation`

* `name` - (Optional) Name of the responder

Expand Down

0 comments on commit 2ea59c3

Please sign in to comment.