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
ValidateFunc: validation.StringMatch(regexp.MustCompile(`-?(\d)+[smhd]`), "Time range must be in the format '-?\\d+[smhd]'. Examples: -15m, 1d, etc."),
134
+
},
130
135
},
131
136
},
132
137
},
@@ -381,8 +386,9 @@ var logsStaticTriggerConditionSchema = map[string]*schema.Schema{
381
386
"threshold_type": &thresholdTypeSchema,
382
387
}),
383
388
"resolution": nested(false, schemaMap{
384
-
"threshold": &thresholdSchema,
385
-
"threshold_type": &thresholdTypeSchema,
389
+
"threshold": &thresholdSchema,
390
+
"threshold_type": &thresholdTypeSchema,
391
+
"resolution_window": &timeRangeSchema,
386
392
}),
387
393
}),
388
394
"warning": nested(true, schemaMap{
@@ -392,8 +398,9 @@ var logsStaticTriggerConditionSchema = map[string]*schema.Schema{
392
398
"threshold_type": &thresholdTypeSchema,
393
399
}),
394
400
"resolution": nested(false, schemaMap{
395
-
"threshold": &thresholdSchema,
396
-
"threshold_type": &thresholdTypeSchema,
401
+
"threshold": &thresholdSchema,
402
+
"threshold_type": &thresholdTypeSchema,
403
+
"resolution_window": &timeRangeSchema,
397
404
}),
398
405
}),
399
406
}
@@ -642,6 +649,7 @@ func resourceSumologicMonitorsLibraryMonitorRead(d *schema.ResourceData, meta in
@@ -317,6 +318,7 @@ The following arguments are supported:
317
318
-`slo_id` - (Optional) Identifier of the SLO definition for the monitor. This is only applicable & required for Slo `monitor_type`.
318
319
-`queries` - (Required) All queries from the monitor.
319
320
-`trigger_conditions` - (Required if not using `triggers`) Defines the conditions of when to send notifications. NOTE: `trigger_conditions` supplants the `triggers` argument.
321
+
-`resolution_window` - The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
320
322
-`triggers` - (Deprecated) Defines the conditions of when to send notifications.
321
323
-`notifications` - (Optional) The notifications the monitor will send when the respective trigger condition is met.
322
324
-`group_notifications` - (Optional) Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
@@ -360,6 +362,7 @@ trigger_conditions {
360
362
resolution {
361
363
threshold = 90
362
364
threshold_type = "LessThanOrEqual"
365
+
resolution_window = "5m"
363
366
}
364
367
}
365
368
warning {
@@ -371,6 +374,7 @@ trigger_conditions {
371
374
resolution {
372
375
threshold = 75
373
376
threshold_type = "LessThanOrEqual"
377
+
resolution_window = "5m"
374
378
}
375
379
}
376
380
}
@@ -403,6 +407,7 @@ Here is a summary of arguments for each condition type (fields which are not mar
403
407
-`resolution` (Required)
404
408
-`threshold`
405
409
-`threshold_type`
410
+
-`resolution_window`
406
411
-`warning`
407
412
-`time_range` (Required)
408
413
-`alert` (Required)
@@ -411,6 +416,7 @@ Here is a summary of arguments for each condition type (fields which are not mar
0 commit comments