Skip to content

Commit

Permalink
Fix: added phantom mode (#319)
Browse files Browse the repository at this point in the history
* fix: added phantom_mode to create call
  • Loading branch information
celaus authored Feb 6, 2025
1 parent e761bc2 commit 7ec6a79
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,4 +768,20 @@ Fix:

Fix:

* Bumped SDK to 1.1.1
* Bumped SDK to 1.1.1

# Release 2.0.6

### resource/coralogix_dashboard

Fix:

* Add promqlQueryType field to dashboard

# Release 2.0.7

### resource/coralogix_alert

Fix:

* Add PhantomMode field
1 change: 1 addition & 0 deletions coralogix/resource_coralogix_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ func extractAlertProperties(ctx context.Context, plan *AlertResourceModel) (*cxs
IncidentsSettings: incidentsSettings,
NotificationGroup: notificationGroup,
EntityLabels: labels,
PhantomMode: typeBoolToWrapperspbBool(plan.PhantomMode),
// Schedule is set in the next step
}

Expand Down
2 changes: 2 additions & 0 deletions coralogix/resource_coralogix_alert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestAccCoralogixResourceAlert_logs_immediate(t *testing.T) {
resource.TestCheckResourceAttr(alertResourceName, "name", "logs immediate alert"),
resource.TestCheckResourceAttr(alertResourceName, "description", "Example of logs immediate alert from terraform"),
resource.TestCheckResourceAttr(alertResourceName, "priority", "P2"),
resource.TestCheckResourceAttr(alertResourceName, "phantom_mode", "true"),
resource.TestCheckResourceAttr(alertResourceName, "labels.alert_type", "security"),
resource.TestCheckResourceAttr(alertResourceName, "labels.security_severity", "high"),
resource.TestCheckResourceAttr(alertResourceName, "incidents_settings.notify_on", "Triggered and Resolved"),
Expand Down Expand Up @@ -1358,6 +1359,7 @@ func testAccCoralogixResourceAlertLogsImmediate() string {
name = "logs immediate alert"
description = "Example of logs immediate alert from terraform"
priority = "P2"
phantom_mode = true
labels = {
alert_type = "security"
Expand Down

0 comments on commit 7ec6a79

Please sign in to comment.