Skip to content

Commit

Permalink
#214: fix case sensitivity of aggregation and rule operator
Browse files Browse the repository at this point in the history
  • Loading branch information
gessnerfl committed Jan 4, 2024
1 parent cdd284d commit 7671389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instana/resource-application-alert-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,22 @@ 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",
}

applicationAlertSchemaRequiredRuleOperator = &schema.Schema{
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{
Expand Down

0 comments on commit 7671389

Please sign in to comment.