Skip to content

Commit e033786

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

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

sumologic/resource_sumologic_muting_schedules_library_muting_schedule_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func testAccSumologicMutingSchedulesLibraryMutingScheduleBadMonitorScope(testNam
335335
tomorrow := time.Now().AddDate(0, 0, 1)
336336
startDate := tomorrow.Format("2006-01-02")
337337
return fmt.Sprintf(`
338-
resource "sumologic_muting_schedule" "test" {
338+
resource "sumologic_muting_schedule" "test" {
339339
name = "terraform_test_muting_schedule_%s"
340340
description = "terraform_test_muting_schedule_description"
341341
type = "MutingSchedulesLibraryMutingSchedule"

website/docs/r/muting_schedule.html.markdown

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "sumologic_muting_schedule" "muting_schedule" {
3434
```hcl
3535
resource "sumologic_muting_schedule" "muting_schedule" {
3636
name = "Muting Schedule For one time"
37-
description = "This is an example for one time Muting schedule for all monitor"
37+
description = "This is an example for one time muting schedule for all monitor"
3838
type = "MutingSchedulesLibraryMutingSchedule"
3939
content_type = "MutingSchedule"
4040
monitor {
@@ -54,7 +54,7 @@ resource "sumologic_muting_schedule" "muting_schedule" {
5454
```hcl
5555
resource "sumologic_muting_schedule" "muting_schedule" {
5656
name = "Muting Schedule For one time"
57-
description = "This is an example for one time Muting schedule for all monitor"
57+
description = "This is an example for one time muting schedule for all monitor"
5858
type = "MutingSchedulesLibraryMutingSchedule"
5959
content_type = "MutingSchedule"
6060
monitor {
@@ -75,7 +75,7 @@ resource "sumologic_muting_schedule" "muting_schedule" {
7575
```hcl
7676
resource "sumologic_muting_schedule" "muting_schedule" {
7777
name = "Muting Schedule For one time"
78-
description = "This is an example for one time Muting schedule for all monitor"
78+
description = "This is an example for muting schedule with rrule and specific monitor id"
7979
type = "MutingSchedulesLibraryMutingSchedule"
8080
content_type = "MutingSchedule"
8181
monitor {
@@ -96,13 +96,13 @@ resource "sumologic_muting_schedule" "muting_schedule" {
9696
```hcl
9797
resource "sumologic_muting_schedule" "muting_schedule" {
9898
name = "Muting Schedule For one time"
99-
description = "This is an example for one time Muting schedule for all monitor"
99+
description = "This is an example for muting schedule with rrule and specific monitor id and notification group key and values"
100100
type = "MutingSchedulesLibraryMutingSchedule"
101101
content_type = "MutingSchedule"
102102
monitor {
103103
ids = ["0000000000200B92"]
104104
}
105-
notification_groups {
105+
notification_groups {
106106
group_key = "_sources"
107107
group_values =["localhost","127.0.0.1"]
108108
}
@@ -126,11 +126,11 @@ The following arguments are supported:
126126
- `description` - (Optional) The description of the muting schedule.
127127
- `content_type` - (Optional) The type of the content object. Valid value:
128128
- `MutingSchedule`
129-
- `monitor` - (Optional) The monitors which need to put in the muting schedule. see `monitor_scope_type`:
130-
- `schedule` - (Required) The schedule information. see `schedule_type`.
131-
- `notification_groups` -(Optional) The muting schedule group supporting key and values. see `notification_group_type`
129+
- `monitor` - (Optional) The monitors which need to put in the muting schedule. see `monitor_scope`:
130+
- `schedule` - (Required) The schedule information. see `schedule`.
131+
- `notification_groups` -(Optional) The muting schedule group supporting key and values. see `notification_group`
132132

133-
#### schedule_type
133+
#### schedule
134134
- `timezone` - (Required) Time zone for the schedule per
135135
[IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
136136
- `start_date` - (Required) Schedule start date in the format of `yyyy-mm-dd`
@@ -142,11 +142,11 @@ The following arguments are supported:
142142
Event that repeats monthly: every 29th of every other month! `FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29`
143143
(https://freetools.textmagic.com/rrule-generator)
144144

145-
#### monitor_scope_type
145+
#### monitor_scope
146146
- `ids` - (Optional) List of monitor Ids in hex. Must be empty if `all` is true.
147147
- `all` - (Optional) True if the schedule applies to all monitors
148148

149-
#### notification_group_type
149+
#### notification_group
150150
- `group_key` - (Required) the monitor notification group key .
151151
- `group_values` - (Required) List of monitor notification group values.
152152

0 commit comments

Comments
 (0)