From 7671389c8d9cb7b96f8409f729dd60c7be785188 Mon Sep 17 00:00:00 2001 From: gessnerfl Date: Thu, 4 Jan 2024 07:22:38 +0100 Subject: [PATCH] #214: fix case sensitivity of aggregation and rule operator --- instana/resource-application-alert-config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instana/resource-application-alert-config.go b/instana/resource-application-alert-config.go index d2b7caf..bd8c2fb 100644 --- a/instana/resource-application-alert-config.go +++ b/instana/resource-application-alert-config.go @@ -118,14 +118,14 @@ var ( applicationAlertSchemaRequiredRuleAggregation = &schema.Schema{ Type: schema.TypeString, Required: true, - ValidateFunc: validation.StringInSlice(restapi.SupportedAggregations.ToStringSlice(), true), + ValidateFunc: validation.StringInSlice(restapi.SupportedAggregations.ToStringSlice(), false), Description: "The aggregation function of the application alert rule", } applicationAlertSchemaOptionalRuleAggregation = &schema.Schema{ Type: schema.TypeString, Optional: true, - ValidateFunc: validation.StringInSlice(restapi.SupportedAggregations.ToStringSlice(), true), + ValidateFunc: validation.StringInSlice(restapi.SupportedAggregations.ToStringSlice(), false), Description: "The aggregation function of the application alert rule", } @@ -133,7 +133,7 @@ var ( Type: schema.TypeString, Required: true, Description: "The operator which will be applied to evaluate this rule", - ValidateFunc: validation.StringInSlice(restapi.SupportedExpressionOperators.ToStringSlice(), true), + ValidateFunc: validation.StringInSlice(restapi.SupportedExpressionOperators.ToStringSlice(), false), } applicationAlertTimeThresholdTypeKeys = []string{