Skip to content

Commit 737e566

Browse files
authored
Adklinge/add is legacy log analytics rule (#12747)
* Update scheduledQueryRule_API.json Fixed Error contract to fit the real structure * Update createOrUpdateScheduledQueryRules.json Removed readonly properties from example parameters * Update scheduledQueryRule_API.json Added property "displayName" to the structure * Fix to item ; https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=A596EA9C-C8E9-4A72-90FE-4689DFCBA3F6 Fix to item ; https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=A596EA9C-C8E9-4A72-90FE-4689DFCBA3F6 * added display name to the new API version * Fixed descriptions * Added OverrideQueryTimeRange to Swagger on new API version * returned enabled property back to bool * Update scheduledQueryRule_API.json Added missing enum values to ConditionalOperator property * Update scheduledQueryRule_API.json Aligned RP name to pascal format * revert lindent correvction to avoid breaking chnage * run prettier and fixed SubscriptionIdParameter * revert subscripton id to the former description * aligned diagnosticSettings with master * removed locaiton from example * returned location to example * supress false alaram OBJECT_ADDITIONAL_PROPERTIES error * fix suppression * fix merge conflict * removed where clause * added properties isLegacyLogAnalyticsRule, createdWithApiVersion to both api versions
1 parent d606d4b commit 737e566

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

specification/monitor/resource-manager/Microsoft.Insights/preview/2020-05-01-preview/scheduledQueryRule_API.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,16 @@
329329
},
330330
"ScheduledQueryRuleProperties": {
331331
"properties": {
332+
"createdWithApiVersion": {
333+
"type": "string",
334+
"readOnly": true,
335+
"description": "The api-version used when creating this alert rule"
336+
},
337+
"isLegacyLogAnalyticsRule": {
338+
"type": "boolean",
339+
"readOnly": true,
340+
"description": "True if alert rule is legacy Log Analytic rule"
341+
},
332342
"description": {
333343
"type": "string",
334344
"description": "The description of the scheduled query rule."

specification/monitor/resource-manager/Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,16 @@
585585
"LogSearchRule": {
586586
"description": "Log Search Rule Definition",
587587
"properties": {
588+
"createdWithApiVersion": {
589+
"type": "string",
590+
"readOnly": true,
591+
"description": "The api-version used when creating this alert rule"
592+
},
593+
"isLegacyLogAnalyticsRule": {
594+
"type": "boolean",
595+
"readOnly": true,
596+
"description": "True if alert rule is legacy Log Analytic rule"
597+
},
588598
"description": {
589599
"type": "string",
590600
"description": "The description of the Log Search rule."

0 commit comments

Comments
 (0)