File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,12 @@ import (
88 "regexp"
99)
1010
11- const sloAggregationWindowRegexString = `^[0-9]{1,2}(m|h)$` // TODO make it exact of min 1m and max 1h
1211const fieldNameWindowBasedEvaluation = `window_based_evaluation`
1312const fieldNameRequestBasedEvaluation = `request_based_evaluation`
1413const sloContentTypeString = "Slo"
1514
1615func resourceSumologicSLO () * schema.Resource {
1716
18- windowRegex := regexp .MustCompile (sloAggregationWindowRegexString )
19-
2017 queryGroupElemSchema := & schema.Resource {
2118 Schema : map [string ]* schema.Schema {
2219 "row_id" : {
@@ -115,7 +112,6 @@ func resourceSumologicSLO() *schema.Resource {
115112 "size" : {
116113 Type : schema .TypeString ,
117114 Required : true ,
118- ValidateFunc : validation .StringMatch (windowRegex , `value must match : ` + sloAggregationWindowRegexString ),
119115 },
120116 },
121117 }
You can’t perform that action at this time.
0 commit comments