Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
njuCZ committed Apr 21, 2020
1 parent 8c3dcba commit c428153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azurerm/internal/services/alertsmanagement/action_rule.go
Expand Up @@ -76,12 +76,16 @@ func schemaActionRuleMonitorCondtion() *schema.Schema {
}, false),
)
}

func schemaActionRuleMonitorServiceCondtion() *schema.Schema {
return schemaActionRuleCondtion(
validation.StringInSlice([]string{
string(alertsmanagement.Equals),
string(alertsmanagement.NotEquals),
}, false),
// the supported type list is not consistent with the swagger and sdk
// https://github.com/Azure/azure-rest-api-specs/issues/9076
// directly use string constant
validation.StringInSlice([]string{
"ActivityLog Administrative",
"ActivityLog Autoscale",
Expand Down

0 comments on commit c428153

Please sign in to comment.