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
Copy file name to clipboardExpand all lines: website/docs/r/monitor.html.markdown
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,8 +264,18 @@ trigger_conditions {
264
264
}
265
265
```
266
266
### 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
269
279
-`field`
270
280
-`critical`
271
281
-`time_range` (Required)
@@ -283,7 +293,7 @@ Here is a summary of the various condition types that are supported, and the arg
283
293
-`resolution` (Required)
284
294
-`threshold`
285
295
-`threshold_type`
286
-
-`metrics_static_condition`:
296
+
#### metrics_static_condition
287
297
-`critical`
288
298
-`time_range` (Required)
289
299
-`occurrence_type` (Required)
@@ -302,7 +312,7 @@ Here is a summary of the various condition types that are supported, and the arg
302
312
-`resolution` (Required)
303
313
-`threshold`
304
314
-`threshold_type`
305
-
-`logs_outlier_condition`:
315
+
#### logs_outlier_condition
306
316
-`field`
307
317
-`direction`
308
318
-`critical`
@@ -313,30 +323,20 @@ Here is a summary of the various condition types that are supported, and the arg
313
323
-`window`
314
324
-`consecutive`
315
325
-`threshold`
316
-
-`metrics_outlier_condition`:
326
+
#### metrics_outlier_condition
317
327
-`direction`
318
328
-`critical`
319
329
-`baseline_window`
320
330
-`threshold`
321
331
-`warning`
322
332
-`baseline_window`
323
333
-`threshold`
324
-
-`logs_missing_data_condition`:
334
+
#### logs_missing_data_condition
325
335
-`time_range` (Required)
326
-
-`metrics_missing_data_condition`:
336
+
#### metrics_missing_data_condition
327
337
-`time_range` (Required)
328
338
-`trigger_source` (Required)
329
339
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
-
340
340
## Import
341
341
342
342
Monitors can be imported using the monitor ID, such as:
0 commit comments