Skip to content

Commit bc880c7

Browse files
committed
SUMO-189150: removing redundant validations
1 parent 69cc7cd commit bc880c7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sumologic/resource_sumologic_slo.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
1211
const fieldNameWindowBasedEvaluation = `window_based_evaluation`
1312
const fieldNameRequestBasedEvaluation = `request_based_evaluation`
1413
const sloContentTypeString = "Slo"
1514

1615
func 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
}

0 commit comments

Comments
 (0)