@@ -309,6 +309,7 @@ name: <string>
309309time_intervals:
310310 [ - <time_interval_spec> ... ]
311311` ` `
312+
312313# ### `<time_interval_spec>`
313314
314315A `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.
339340For example, `start_time : ' 17:00' ` and ` end_time: '24:00'` will begin at 17:00 and finish
340341immediately before 24:00. They are specified like so :
341342
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+ ` ` `
345348
346349`weekday_range` : A list of days of the week, where the week begins on Sunday and ends on Saturday.
347350Days 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
367370interval. For example, a time interval with a location of `'Australia/Sydney'` that
368371contained something like :
369372
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+ ` ` `
374379
375380would include any time that fell between the hours of 9:00AM and 5:00PM, between Monday
376381and Friday, using the local time in Sydney, Australia.
@@ -437,7 +442,6 @@ source_matchers:
437442# Labels that must have an equal value in the source and target
438443# alert for the inhibition to take effect.
439444[ equal: '[' <labelname>, ... ']' ]
440-
441445` ` `
442446
443447# # Label matchers
@@ -482,7 +486,7 @@ Any occurrences of disagreement should be looked at on a case by case basis as d
482486
483487In UTF-8 strict mode, Alertmanager disables support for classic matchers :
484488
485- ` ` `
489+ ` ` ` bash
486490alertmanager --config.file=config.yml --enable-feature="utf8-strict-mode"
487491` ` `
488492
@@ -498,7 +502,7 @@ UTF-8 strict mode will be the default mode of Alertmanager at the end of the tra
498502
499503Classic mode is equivalent to Alertmanager versions 0.26.0 and older :
500504
501- ` ` `
505+ ` ` ` bash
502506alertmanager --config.file=config.yml --enable-feature="classic-mode"
503507` ` `
504508
@@ -1347,13 +1351,15 @@ The fields are documented in the [Rocketchat API documentation](https://develope
13471351` ` `
13481352
13491353# ### `<rocketchat_action_config>`
1354+
13501355The fields are documented in the [Rocketchat API api models](https://github.com/RocketChat/Rocket.Chat.Go.SDK/blob/master/models/message.go).
13511356
13521357` ` ` yaml
13531358[ type: <tmpl_string> | ignored, only "button" is supported ]
13541359[ text: <tmpl_string> ]
13551360[ url: <tmpl_string> ]
13561361[ msg: <tmpl_string> ]
1362+ ` ` `
13571363
13581364# ## `<slack_config>`
13591365
@@ -1600,7 +1606,6 @@ url_file: <filepath>
16001606# no timeout should be applied.
16011607# NOTE: This will have no effect if set higher than the group_interval.
16021608[ timeout: <duration> | default = 0s ]
1603-
16041609` ` `
16051610
16061611The Alertmanager
0 commit comments