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: #293
  • Loading branch information
janhorstmann authored and arjunrajpal committed Jul 11, 2023
1 parent 81925dc commit b55e057
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 @@ -245,7 +245,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 b55e057

Please sign in to comment.