Skip to content

Commit

Permalink
patch - show in insight nil instead of default values
Browse files Browse the repository at this point in the history
  • Loading branch information
OrNovo committed Nov 19, 2023
1 parent fab3ca8 commit dcf2220
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions coralogix/resource_coralogix_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,9 @@ func flattenMetaLabels(labels []*alerts.MetaLabel) interface{} {
}

func flattenShowInInsight(showInInsight *alerts.ShowInInsight) interface{} {
if showInInsight == nil {
return nil
}
notifyEveryMin := int(showInInsight.GetRetriggeringPeriodSeconds().GetValue() / 60)
notifyOn := alertProtoNotifyOnToSchemaNotifyOn[showInInsight.GetNotifyOn()]
showInInsightSchema := map[string]interface{}{
Expand Down
Binary file removed docs/img.png
Binary file not shown.
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ resource "coralogix_rules_group" "my_first_rules_group" {
<!-- schema generated by tfplugindocs -->

## Authentication
For authentication, the Coralogix provider uses an api-key.
![img.png](img.png)
For authentication, the Coralogix provider uses an api-key (under API Keys in the UI - Alerts, Rules and Tags API Key).
The api-key and the desired environment for using the Coralogix provider can be set in two ways:

1. Explicitly:
Expand Down
2 changes: 1 addition & 1 deletion examples/alert/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
coralogix = {
version = "~> 1.6"
version = "~> 1.9"
source = "coralogix/coralogix"
}
}
Expand Down

0 comments on commit dcf2220

Please sign in to comment.