Skip to content

Commit 4adac12

Browse files
CLOUDP-31301: add changelog entry and lint fix
1 parent ae82057 commit 4adac12

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.changelog/3795.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
```

internal/service/alertconfiguration/data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

3939
type TfAlertConfigurationOutputModel struct {

internal/service/alertconfiguration/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

7070
type TfMatcherModel struct {

internal/service/alertconfiguration/resource_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)