Azure / Azure/azure-rest-api-specs

change Microsoft.Insights/scheduledQueryRules enabled property to boolean

Open
#8,710 0 comments 0 reactions 0 assignees View on GitHub
customer-reported Insights needs-team-attention Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
3d 37m
Merged PRs (30d)
446

Description

The enabled property is defined as a string enum with values **"true"** and **"false"**, as [the documentation](https://docs.microsoft.com/en-us/azure/templates/microsoft.insights/2018-04-16/scheduledQueryRules) reflects.

In other places - like [Microsoft.Insights/metricAlerts](https://docs.microsoft.com/en-us/azure/templates/microsoft.insights/2018-03-01/metricalerts) - the same property is defined as boolean, accepting values **true** and **false**.

Please change the property to boolean to improve consistency.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Microsoft.Insights scheduledQueryRules specification and read the definition of its enabled property. Confirm the current string enum and compare it with the metricAlerts definition; done means the scheduledQueryRules property accepts boolean true and false consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.