@@ -309,6 +309,7 @@ name: <string>
309
309
time_intervals:
310
310
[ - <time_interval_spec> ... ]
311
311
` ` `
312
+
312
313
# ### `<time_interval_spec>`
313
314
314
315
A `time_interval_spec` contains the actual definition for an interval of time. The syntax
@@ -339,9 +340,11 @@ make it easy to represent times that start/end on hour boundaries.
339
340
For example, `start_time : ' 17:00' ` and ` end_time: '24:00'` will begin at 17:00 and finish
340
341
immediately before 24:00. They are specified like so :
341
342
342
- times :
343
- - start_time : HH:MM
344
- end_time : HH:MM
343
+ ` ` ` yaml
344
+ times:
345
+ - start_time: HH:MM
346
+ end_time: HH:MM
347
+ ` ` `
345
348
346
349
`weekday_range` : A list of days of the week, where the week begins on Sunday and ends on Saturday.
347
350
Days should be specified by name (e.g. 'Sunday'). For convenience, ranges are also accepted
@@ -367,10 +370,12 @@ example, `'Australia/Sydney'`. The location provides the time zone for the time
367
370
interval. For example, a time interval with a location of `'Australia/Sydney'` that
368
371
contained something like :
369
372
370
- times :
371
- - start_time : 09:00
372
- end_time : 17:00
373
- weekdays : ['monday:friday']
373
+ ` ` ` yaml
374
+ times:
375
+ - start_time: 09:00
376
+ end_time: 17:00
377
+ weekdays: ['monday:friday']
378
+ ` ` `
374
379
375
380
would include any time that fell between the hours of 9:00AM and 5:00PM, between Monday
376
381
and Friday, using the local time in Sydney, Australia.
@@ -437,7 +442,6 @@ source_matchers:
437
442
# Labels that must have an equal value in the source and target
438
443
# alert for the inhibition to take effect.
439
444
[ equal: '[' <labelname>, ... ']' ]
440
-
441
445
` ` `
442
446
443
447
# # Label matchers
@@ -482,7 +486,7 @@ Any occurrences of disagreement should be looked at on a case by case basis as d
482
486
483
487
In UTF-8 strict mode, Alertmanager disables support for classic matchers :
484
488
485
- ` ` `
489
+ ` ` ` bash
486
490
alertmanager --config.file=config.yml --enable-feature="utf8-strict-mode"
487
491
` ` `
488
492
@@ -498,7 +502,7 @@ UTF-8 strict mode will be the default mode of Alertmanager at the end of the tra
498
502
499
503
Classic mode is equivalent to Alertmanager versions 0.26.0 and older :
500
504
501
- ` ` `
505
+ ` ` ` bash
502
506
alertmanager --config.file=config.yml --enable-feature="classic-mode"
503
507
` ` `
504
508
@@ -1347,13 +1351,15 @@ The fields are documented in the [Rocketchat API documentation](https://develope
1347
1351
` ` `
1348
1352
1349
1353
# ### `<rocketchat_action_config>`
1354
+
1350
1355
The fields are documented in the [Rocketchat API api models](https://github.com/RocketChat/Rocket.Chat.Go.SDK/blob/master/models/message.go).
1351
1356
1352
1357
` ` ` yaml
1353
1358
[ type: <tmpl_string> | ignored, only "button" is supported ]
1354
1359
[ text: <tmpl_string> ]
1355
1360
[ url: <tmpl_string> ]
1356
1361
[ msg: <tmpl_string> ]
1362
+ ` ` `
1357
1363
1358
1364
# ## `<slack_config>`
1359
1365
@@ -1600,7 +1606,6 @@ url_file: <filepath>
1600
1606
# no timeout should be applied.
1601
1607
# NOTE: This will have no effect if set higher than the group_interval.
1602
1608
[ timeout: <duration> | default = 0s ]
1603
-
1604
1609
` ` `
1605
1610
1606
1611
The Alertmanager
0 commit comments