File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
internal/service/alertconfiguration Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ ```release-note:enhancement
2+ data-source/mongodbatlas_alert_configuration: Adds `severity_override` attribute
3+ ```
4+
5+ ```release-note:enhancement
6+ resource/mongodbatlas_alert_configuration: Adds `severity_override` attribute
7+ ```
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ type TFAlertConfigurationDSModel struct {
2727 EventType types.String `tfsdk:"event_type"`
2828 Created types.String `tfsdk:"created"`
2929 Updated types.String `tfsdk:"updated"`
30+ SeverityOverride types.String `tfsdk:"severity_override"`
3031 Matcher []TfMatcherModel `tfsdk:"matcher"`
3132 MetricThresholdConfig []TfMetricThresholdConfigModel `tfsdk:"metric_threshold_config"`
3233 ThresholdConfig []TfThresholdConfigModel `tfsdk:"threshold_config"`
3334 Notification []TfNotificationModel `tfsdk:"notification"`
3435 Output []TfAlertConfigurationOutputModel `tfsdk:"output"`
3536 Enabled types.Bool `tfsdk:"enabled"`
36- SeverityOverride types.String `tfsdk:"severity_override"`
3737}
3838
3939type TfAlertConfigurationOutputModel struct {
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ type TfAlertConfigurationRSModel struct {
5959 EventType types.String `tfsdk:"event_type"`
6060 Created types.String `tfsdk:"created"`
6161 Updated types.String `tfsdk:"updated"`
62+ SeverityOverride types.String `tfsdk:"severity_override"`
6263 Matcher []TfMatcherModel `tfsdk:"matcher"`
6364 MetricThresholdConfig []TfMetricThresholdConfigModel `tfsdk:"metric_threshold_config"`
6465 ThresholdConfig []TfThresholdConfigModel `tfsdk:"threshold_config"`
6566 Notification []TfNotificationModel `tfsdk:"notification"`
6667 Enabled types.Bool `tfsdk:"enabled"`
67- SeverityOverride types.String `tfsdk:"severity_override"`
6868}
6969
7070type TfMatcherModel struct {
Original file line number Diff line number Diff line change @@ -1069,7 +1069,7 @@ func configWithEmptyOptionalBlocks(projectID string) string {
10691069 ` , projectID )
10701070}
10711071
1072- func configWithSeverityOverride (projectID string , severity string ) string {
1072+ func configWithSeverityOverride (projectID , severity string ) string {
10731073 return fmt .Sprintf (`
10741074 resource "mongodbatlas_alert_configuration" "test" {
10751075 project_id = %[1]q
You can’t perform that action at this time.
0 commit comments