Skip to content

Commit

Permalink
Alerts API fix added (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
EldarAliiev authored Feb 1, 2022
1 parent 7e6d2c3 commit 7c3a8b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coralogix/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
func getAlertByID(alertsList []interface{}, alertID string) (map[string]interface{}, error) {
for _, alert := range alertsList {
alert := alert.(map[string]interface{})
if alert["id"].(string) == alertID {
if alert["unique_identifier"].(string) == alertID {
return alert, nil
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ resource "coralogix_alert" "example" {
severities = []
}
condition {
type = "more_than"
threshold = 100
timeframe = "30MIN"
condition_type = "more_than"
threshold = 100
timeframe = "30MIN"
}
notifications {
emails = [
Expand Down

0 comments on commit 7c3a8b7

Please sign in to comment.