Skip to content

Commit 4e7b796

Browse files
committed
SUMO-231087:updated based on the feedback
1 parent 0f8f4c2 commit 4e7b796

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## 2.28.1 (Unreleased)
2+
* resource/sumologic_muting_schedule: Added group supporting for muting schedule (GH-593)
23

34
## 2.28.0 (November 23, 2023)
45
FEATURES:
56
* resource/sumologic_monitor: Added support for setting `time_zone` at Monitor level for notifications content (GH-586)
6-
* resource/sumologic_muting_schedule: Added group supporting for muting schedule (GH-593)
77

88
BUG FIXES:
99
* Fixes `resource_sumologic_cse_match_list` constant change when defining a match list containing a custom column using the custom columns name instead of ID (GH-591)

website/docs/r/muting_schedule.html.markdown

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource "sumologic_muting_schedule" "muting_schedule" {
7070
}
7171
```
7272

73-
## Example Daily Muting Schedule From 9:00 AM to 9:30 and 10:00 AM to 10:30 AM Since 2023-08-05 For Specifc Monitor/Folder ids
73+
## Example Daily Muting Schedule From 9:00 AM to 9:30 and 10:00 AM to 10:30 AM Since 2023-08-05 For Specific Monitor/Folder ids
7474

7575
```hcl
7676
resource "sumologic_muting_schedule" "muting_schedule" {
@@ -91,6 +91,31 @@ resource "sumologic_muting_schedule" "muting_schedule" {
9191
}
9292
```
9393

94+
## Example Daily Muting Schedule With Group Supporting
95+
96+
```hcl
97+
resource "sumologic_muting_schedule" "muting_schedule" {
98+
name = "Muting Schedule For one time"
99+
description = "This is an example for one time Muting schedule for all monitor"
100+
type = "MutingSchedulesLibraryMutingSchedule"
101+
content_type = "MutingSchedule"
102+
monitor {
103+
ids = ["0000000000200B92"]
104+
}
105+
notification_groups {
106+
group_key = "_sources"
107+
group_values =["localhost","127.0.0.1"]
108+
}
109+
schedule {
110+
timezone = "America/Los_Angeles"
111+
start_date = "2023-08-05"
112+
start_time = "00:00"
113+
duration = 30
114+
rrule = "FREQ=DAILY;INTERVAL=1;BYHOUR=9,10"
115+
}
116+
}
117+
```
118+
94119
## Argument reference
95120

96121
The following arguments are supported:
@@ -103,7 +128,7 @@ The following arguments are supported:
103128
- `MutingSchedule`
104129
- `monitor` - (Optional) The monitors which need to put in the muting schedule. see `monitor_scope_type`:
105130
- `schedule` - (Required) The schedule information. see `schedule_type`.
106-
- `notification_groups` -(Optinal) The muting schedule group supporting key and values. see `notification_group_type`
131+
- `notification_groups` -(Optional) The muting schedule group supporting key and values. see `notification_group_type`
107132

108133
#### schedule_type
109134
- `timezone` - (Required) Time zone for the schedule per

0 commit comments

Comments
 (0)