Skip to content

Commit

Permalink
Add support for missing "Check failed" Health Event notifications
Browse files Browse the repository at this point in the history
Closes #926
  • Loading branch information
lucymhdavies committed Jun 13, 2023
1 parent 4ac4d39 commit a180228
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

BUG FIXES:
* `r/tfe_workspace_run`: Ensure `wait_for_run` correctly results in a fire-and-forget Run when set to `false` by @lucymhdavies ([#910](https://github.com/hashicorp/terraform-provider-tfe/pull/910)
* `r/tfe_notification_configuration``: Add support for missing "Check failed" Health Event notifications by @lucymhdavies PRTODO



Expand Down
1 change: 1 addition & 0 deletions tfe/resource_tfe_notification_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func resourceTFENotificationConfiguration() *schema.Resource {
string(tfe.NotificationTriggerApplying),
string(tfe.NotificationTriggerCompleted),
string(tfe.NotificationTriggerErrored),
string(tfe.NotificationTriggerAssessmentCheckFailed),
string(tfe.NotificationTriggerAssessmentDrifted),
string(tfe.NotificationTriggerAssessmentFailed),
},
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/notification_configuration.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ The following arguments are supported:
configurations with a destination type of `generic`. Defaults to `null`.
This value _must not_ be provided if `destination_type` is `email`, `microsoft-teams`, or `slack`.
* `triggers` - (Optional) The array of triggers for which this notification configuration will
send notifications. Valid values are `run:created`, `run:planning`, `run:needs_attention`, `run:applying`
`run:completed`, `run:errored`, `assessment:drifted`, or `assessment:failed`.
send notifications. Valid values assessment:check_failureare `run:created`, `run:planning`, `run:needs_attention`, `run:applying`
`run:completed`, `run:errored`, `assessment:check_failure`, `assessment:drifted`, or `assessment:failed`.
If omitted, no notification triggers are configured.
* `url` - (Required if `destination_type` is `generic`, `microsoft-teams`, or `slack`) The HTTP or HTTPS URL of the notification
configuration where notification requests will be made. This value _must not_ be provided if `destination_type`
Expand Down

0 comments on commit a180228

Please sign in to comment.