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
+
"resolution_window": &resolutionWindowSchema,
135
131
},
136
132
},
137
133
},
@@ -388,7 +384,7 @@ var logsStaticTriggerConditionSchema = map[string]*schema.Schema{
388
384
"resolution": nested(false, schemaMap{
389
385
"threshold": &thresholdSchema,
390
386
"threshold_type": &thresholdTypeSchema,
391
-
"resolution_window": &timeRangeSchema,
387
+
"resolution_window": &resolutionWindowSchema,
392
388
}),
393
389
}),
394
390
"warning": nested(true, schemaMap{
@@ -400,7 +396,7 @@ var logsStaticTriggerConditionSchema = map[string]*schema.Schema{
400
396
"resolution": nested(false, schemaMap{
401
397
"threshold": &thresholdSchema,
402
398
"threshold_type": &thresholdTypeSchema,
403
-
"resolution_window": &timeRangeSchema,
399
+
"resolution_window": &resolutionWindowSchema,
404
400
}),
405
401
}),
406
402
}
@@ -556,6 +552,12 @@ var timeRangeSchema = schema.Schema{
556
552
ValidateFunc: validation.StringMatch(regexp.MustCompile(`-?(\d)+[smhd]`), "Time range must be in the format '-?\\d+[smhd]'. Examples: -15m, 1d, etc."),
557
553
}
558
554
555
+
varresolutionWindowSchema= schema.Schema{
556
+
Type: schema.TypeString,
557
+
Optional: true,
558
+
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(\d)+[smhd]`), "Resolution window must be in the format '\\d+[smhd]'. Examples: 0m, 15m, 1d, etc."),
0 commit comments