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
Description: "Conditions that affect whether the action runs. If you specify multiple conditions, all conditions must be met for the action to run. For example, if an alert occurs within the specified time frame and matches the query, the action runs.",
130
+
Type: schema.TypeList,
131
+
MinItems: 0,
132
+
MaxItems: 1,
133
+
Optional: true,
134
+
Elem: &schema.Resource{
135
+
Schema: map[string]*schema.Schema{
136
+
"kql": {
137
+
Description: "Defines a query filter that determines whether the action runs. Written in Kibana Query Language (KQL).",
138
+
Type: schema.TypeString,
139
+
Optional: true,
140
+
},
141
+
"timeframe": {
142
+
Description: "Defines a period that limits whether the action runs.",
143
+
Type: schema.TypeList,
144
+
MinItems: 0,
145
+
MaxItems: 1,
146
+
Optional: true,
147
+
Elem: &schema.Resource{
148
+
Schema: map[string]*schema.Schema{
149
+
"days": {
150
+
Description: "Defines the days of the week that the action can run, represented as an array of numbers. For example, 1 represents Monday. An empty array is equivalent to specifying all the days of the week.",
151
+
Type: schema.TypeList,
152
+
Required: true,
153
+
Elem: &schema.Schema{
154
+
Type: schema.TypeInt,
155
+
ValidateFunc: validation.IntBetween(1, 7),
156
+
},
157
+
},
158
+
"timezone": {
159
+
Description: "The ISO time zone for the hours values. Values such as UTC and UTC+1 also work but lack built-in daylight savings time support and are not recommended.",
160
+
Type: schema.TypeString,
161
+
Required: true,
162
+
},
163
+
"hours_start": {
164
+
Description: "Defines the range of time in a day that the action can run. The start of the time frame in 24-hour notation (hh:mm).",
165
+
Type: schema.TypeString,
166
+
Required: true,
167
+
ValidateFunc: utils.StringIsHours,
168
+
},
169
+
"hours_end": {
170
+
Description: "Defines the range of time in a day that the action can run. The end of the time frame in 24-hour notation (hh:mm).",
0 commit comments