Skip to content

Commit 294c9d1

Browse files
authored
Merge pull request #261 from SumoLogic/avijit-fix-tf-monitors-doc
Reduced nesting level to fix formatting issues
2 parents ab5ee30 + 6afad29 commit 294c9d1

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ BUG FIXES:
44

55
* resource/sumologic_monitor: Removed deprecation warning for `triggers`.
66
* seperated docs for sumologic_monitor_folder from docs for sumologic_monitor.
7+
* resource/sumologic_monitor: Fixed docs for `trigger_conditions`.
78

89
## 2.9.8 (July 30, 2021)
910

website/docs/r/monitor.html.markdown

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,18 @@ trigger_conditions {
264264
}
265265
```
266266
### Arguments
267-
Here is a summary of the various condition types that are supported, and the arguments each of them takes (fields which are not marked as `Required` are optional):
268-
- `logs_static_condition`:
267+
A `trigger_conditions` block contains one or more subblocks of the following types:
268+
- `logs_static_condition`
269+
- `metrics_static_condition`
270+
- `logs_outlier_condition`
271+
- `metrics_outlier_condition`
272+
- `logs_missing_data_condition`
273+
- `metrics_missing_data_condition`
274+
275+
Subblocks should be limited to at most 1 missing data condition and at most 1 static / outlier condition.
276+
277+
Here is a summary of arguments for each condition type (fields which are not marked as `Required` are optional):
278+
#### logs_static_condition
269279
- `field`
270280
- `critical`
271281
- `time_range` (Required)
@@ -283,7 +293,7 @@ Here is a summary of the various condition types that are supported, and the arg
283293
- `resolution` (Required)
284294
- `threshold`
285295
- `threshold_type`
286-
- `metrics_static_condition`:
296+
#### metrics_static_condition
287297
- `critical`
288298
- `time_range` (Required)
289299
- `occurrence_type` (Required)
@@ -302,7 +312,7 @@ Here is a summary of the various condition types that are supported, and the arg
302312
- `resolution` (Required)
303313
- `threshold`
304314
- `threshold_type`
305-
- `logs_outlier_condition`:
315+
#### logs_outlier_condition
306316
- `field`
307317
- `direction`
308318
- `critical`
@@ -313,30 +323,20 @@ Here is a summary of the various condition types that are supported, and the arg
313323
- `window`
314324
- `consecutive`
315325
- `threshold`
316-
- `metrics_outlier_condition`:
326+
#### metrics_outlier_condition
317327
- `direction`
318328
- `critical`
319329
- `baseline_window`
320330
- `threshold`
321331
- `warning`
322332
- `baseline_window`
323333
- `threshold`
324-
- `logs_missing_data_condition`:
334+
#### logs_missing_data_condition
325335
- `time_range` (Required)
326-
- `metrics_missing_data_condition`:
336+
#### metrics_missing_data_condition
327337
- `time_range` (Required)
328338
- `trigger_source` (Required)
329339

330-
A `trigger_conditions` block can contain at most 1 data condition:
331-
- `logs_static_condition`
332-
- `metrics_static_condition`
333-
- `logs_outlier_condition`
334-
- `metrics_outlier_condition`
335-
336-
and at most 1 missing-data condition:
337-
- `logs_missing_data_condition`
338-
- `metrics_missing_data_condition`
339-
340340
## Import
341341

342342
Monitors can be imported using the monitor ID, such as:

0 commit comments

Comments
 (0)