Skip to content

Commit d5c3e2b

Browse files
committed
SUMO-213711 resolved conflicts
1 parent 5081db2 commit d5c3e2b

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
## 2.21.1 (Unreleased)
22
FEATURES:
3+
* resource/sumologic_monitor: Added support for creating SLO Monitors with multiple burn rates (GH-499)
34
* Add new optional `resolution_payload` field to connection resource and `resolution_payload_override` field to notifications section of monitor resource (GH-482)
45

56
BUG FIXES:
67
* Remove thresholdType field under searchSchedule in content resource (GH-483)
78

9+
DEPRECATIONS:
10+
11+
* resource/sumologic_monitor: Deprecated `burn_rate_threshold` and time_range in favor of `burn_rate` inside `slo_burn_rate_condition` block (GH-499)
12+
813
## 2.21.0 (February 27, 2023)
914
FEATURES:
1015
* **New Resource:** sumologic_cse_first_seen_rule (GH-476)

website/docs/r/monitor.html.markdown

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,20 @@ resource "sumologic_monitor" "tf_slo_monitor_2" {
197197
trigger_conditions {
198198
slo_burn_rate_condition {
199199
critical {
200-
burn_rate_threshold = 10
201-
time_range = "1d"
200+
burn_rate {
201+
burn_rate_threshold = 50
202+
time_range = "1d"
203+
}
202204
}
203205
warning {
204-
burn_rate_threshold = 5
205-
time_range = "1d"
206+
burn_rate {
207+
burn_rate_threshold = 30
208+
time_range = "3d"
209+
}
210+
burn_rate {
211+
burn_rate_threshold = 20
212+
time_range = "4d"
213+
}
206214
}
207215
}
208216
}
@@ -487,11 +495,17 @@ Here is a summary of arguments for each condition type (fields which are not mar
487495

488496
#### slo_burn_rate_condition
489497
- `critical`
490-
- `time_range` (Required) : The relative time range for the burn rate percentage evaluation. Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
491-
- `burn_rate_threshold` (Required) : The burn rate percentage threshold.
498+
- `time_range` (Deprecated) : The relative time range for the burn rate percentage evaluation. Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
499+
- `burn_rate_threshold` (Deprecated) : The burn rate percentage threshold.
500+
- `burn_rate` (Required if above two fields are not present): Block to specify burn rate threshold and time range for the condition. This field is in private beta and is not available until given access. To participate in the beta program, contact Sumo Logic support.
501+
- `burn_rate_threshold` (Required): The burn rate percentage threshold.
502+
- `time_range` (Required): The relative time range for the burn rate percentage evaluation. Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
492503
- `warning`
493-
- `time_range` (Required) : Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
494-
- `burn_rate_threshold` (Required)
504+
- `time_range` (Deprecated) : Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
505+
- `burn_rate_threshold` (Deprecated)
506+
- `burn_rate` (Required if above two fields are not present): Block to specify burn rate threshold and time range for the condition. This field is in private beta and is not available until given access. To participate in the beta program, contact Sumo Logic support.
507+
- `burn_rate_threshold` (Required): The burn rate percentage threshold.
508+
- `time_range` (Required): The relative time range for the burn rate percentage evaluation. Accepted format: Optional `-` sign followed by `<number>` followed by a `<time_unit>` character: `s` for seconds, `m` for minutes, `h` for hours, `d` for days. Examples: `30m`, `-12h`.
495509

496510
## The `triggers` block
497511
The `triggers` block is deprecated. Please use `trigger_conditions` to specify notification conditions.

0 commit comments

Comments
 (0)