You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "This is an example for muting schedule with rrule and specific monitor id and notification group key and values"
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
-
119
75
## Argument reference
120
76
121
77
The following arguments are supported:
122
78
123
-
-`type` - (Optional) The type of object model. Valid value:
124
-
-`MutingSchedulesLibraryMutingSchedule`
125
-
-`name` - (Required) The name of the muting schedule. The name must be alphanumeric.
126
-
-`description` - (Optional) The description of the muting schedule.
127
-
-`content_type` - (Optional) The type of the content object. Valid value:
128
-
-`MutingSchedule`
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`
79
+
-`type` - (Required) The type of object model. Valid value: `MutingSchedulesLibraryMutingSchedule`
80
+
-`name` - (Required) Name of the muting schedule.
81
+
-`description` - (Optional) Description of the muting schedule.
82
+
-`content_type` - (Optional) The type of the content object. Valid value: `MutingSchedule`
83
+
-`monitor` - (Optional) Monitor scope that the schedule applies to. See `Monitor Scope` for more details.
84
+
-`schedule` - (Required) Schedule definition. See `Schedule Definition` for more details.
85
+
-`notification_groups` - (Optional) Alert group scope that the schedule applies to. See `Group Scope` for more details.
132
86
133
-
#### schedule
87
+
#### Schedule Definition
134
88
-`timezone` - (Required) Time zone for the schedule per
135
89
[IANA Time Zone Database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
136
90
-`start_date` - (Required) Schedule start date in the format of `yyyy-mm-dd`
137
91
-`start_time` - (Required) Schedule start time in the format of `hh:mm`
138
92
-`duration` - (Required) Duration of the muting in minutes
139
-
-`rrule` - (Optional) RRule (Recurrence Rule) Below are some examples of how to represent recurring events using the RRULE format:
140
-
A rule occurring on the third Sunday of April would be as follows: `FREQ=YEARLY;BYMONTH=4;BYDAY=SU;BYSETPOS=3`
141
-
An event occurring on the first and second Monday of October would be specified by the rule: `FREQ=YEARLY;BYMONTH=10;BYDAY=MO;BYSETPOS=1,2`
142
-
Event that repeats monthly: every 29th of every other month! `FREQ=MONTHLY;INTERVAL=2;BYMONTHDAY=29`
143
-
(https://freetools.textmagic.com/rrule-generator)
93
+
-`rrule` - (Optional) Recurrence Rule. See https://freetools.textmagic.com/rrule-generator for more details.
144
94
145
-
#### monitor_scope
95
+
#### Monitor Scope
146
96
-`ids` - (Optional) List of monitor Ids in hex. Must be empty if `all` is true.
147
97
-`all` - (Optional) True if the schedule applies to all monitors
148
98
149
-
#### notification_group
150
-
-`group_key` - (Required) the monitor notification group key .
151
-
-`group_values` - (Required) List of monitor notification group values.
99
+
#### Group Scope
100
+
-`group_key` - (Required) Field name of an alert group defined in monitors. See [Alert Grouping](https://help.sumologic.com/docs/alerts/monitors/alert-grouping/) for more details.
101
+
-`group_values` - (Required) Values of alert groups generated by monitors
0 commit comments