Skip to content

Commit 3b06b97

Browse files
authored
Merge pull request #4207 from Nikachev/fix_docs_slack
Fixed formatting error
2 parents fa65edb + f63fc7a commit 3b06b97

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

docs/configuration.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ name: <string>
309309
time_intervals:
310310
[ - <time_interval_spec> ... ]
311311
```
312+
312313
#### `<time_interval_spec>`
313314

314315
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.
339340
For example, `start_time: '17:00'` and `end_time: '24:00'` will begin at 17:00 and finish
340341
immediately 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.
347350
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
367370
interval. For example, a time interval with a location of `'Australia/Sydney'` that
368371
contained 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

375380
would include any time that fell between the hours of 9:00AM and 5:00PM, between Monday
376381
and 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

483487
In UTF-8 strict mode, Alertmanager disables support for classic matchers:
484488

485-
```
489+
```bash
486490
alertmanager --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

499503
Classic mode is equivalent to Alertmanager versions 0.26.0 and older:
500504

501-
```
505+
```bash
502506
alertmanager --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+
13501355
The 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

16061611
The Alertmanager

0 commit comments

Comments
 (0)