diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae28bc1..991a3161 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -497,4 +497,9 @@ Breaking Changes: ## Release 1.12.0 Breaking Changes: #### resource/coralogix_sli -* `filters` was changed from `TypeList` to `TypeSet`. \ No newline at end of file +* `filters` was changed from `TypeList` to `TypeSet`. + +## Release 1.12.1 +Bug fixing: +#### resource/coralogix_slo +* fixing `threshold_symbol_type` bug in ac ase of `greater_or_equal` and add `less_or_equal` option. \ No newline at end of file diff --git a/coralogix/resource_coralogix_slo.go b/coralogix/resource_coralogix_slo.go index 8b1af17a..af510625 100644 --- a/coralogix/resource_coralogix_slo.go +++ b/coralogix/resource_coralogix_slo.go @@ -36,7 +36,7 @@ var ( slos.ThresholdSymbol_THRESHOLD_SYMBOL_GREATER: "greater", slos.ThresholdSymbol_THRESHOLD_SYMBOL_GREATER_OR_EQUAL: "greater_or_equal", slos.ThresholdSymbol_THRESHOLD_SYMBOL_LESS: "less", - slos.ThresholdSymbol_THRESHOLD_SYMBOL_LESS_OR_EQUAL: "greater_or_equal", + slos.ThresholdSymbol_THRESHOLD_SYMBOL_LESS_OR_EQUAL: "less_or_equal", slos.ThresholdSymbol_THRESHOLD_SYMBOL_EQUAL: "equal", } schemaToProtoThresholdSymbolType = ReverseMap(protoToSchemaThresholdSymbolType) diff --git a/docs/data-sources/slo.md b/docs/data-sources/slo.md index 3e71adc1..a7f894cb 100644 --- a/docs/data-sources/slo.md +++ b/docs/data-sources/slo.md @@ -38,7 +38,7 @@ data "coralogix_slo" "example" { - `status` (String) - `target_percentage` (Number) Target percentage. This is the target percentage of the SLO. - `threshold_microseconds` (Number) Threshold in microseconds. Required when `type` is `latency`. -- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["greater" "greater_or_equal" "less" "equal"] +- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["greater" "greater_or_equal" "less" "less_or_equal" "equal"] - `type` (String) Type. This is the type of the SLO. Valid values are: "error", "latency". diff --git a/docs/resources/slo.md b/docs/resources/slo.md index 42dce35b..eeaa101e 100644 --- a/docs/resources/slo.md +++ b/docs/resources/slo.md @@ -65,8 +65,7 @@ resource "coralogix_slo" "example_2" { - `description` (String) Optional SLO description. - `filters` (Attributes Set) (see [below for nested schema](#nestedatt--filters)) - `threshold_microseconds` (Number) Threshold in microseconds. Required when `type` is `latency`. -- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values - are: ["greater" "greater_or_equal" "less" "equal"] +- `threshold_symbol_type` (String) Threshold symbol type. Required when `type` is `latency`. Valid values are: ["greater" "greater_or_equal" "less" "less_or_equal" "equal"] ### Read-Only