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."),
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(\d)+[smhd]`), "Frequency time must be in the format '\\d+[smhd]'. Examples: 0m, 15m, 1d, etc."),
273
-
},
254
+
"threshold": &thresholdSchema,
255
+
"threshold_type": &thresholdTypeSchema,
256
+
"time_range": &timeRangeWithFormatSchema,
257
+
"frequency": &frequencySchema,
274
258
"trigger_source": {
275
259
Type: schema.TypeString,
276
260
Optional: true,
@@ -822,10 +806,9 @@ var thresholdTypeSchema = schema.Schema{
"Frequency time must be in the format '\\d+[smhd]'. Examples: 0m, 15m, 1d, etc."),
809
+
Type: schema.TypeString,
810
+
Optional: true,
811
+
ValidateFunc: validation.StringMatch(regexp.MustCompile(`^(\d)+[smhd]`), "Frequency time must be in the format '\\d+[smhd]'. Examples: 1m, 2m, 10m, 20m, 1h"),
0 commit comments