Skip to content

Commit ba75675

Browse files
author
SDKAuto
committed
CodeGen from PR 14588 in Azure/azure-rest-api-specs
Introduce go SDK track 2 configurations for monitor (#14588) * introduce monitor track 2 configurations * add directive to solve the duplicate schema error * update package name * append a comment for the reason of directive
1 parent c9b469e commit ba75675

File tree

4 files changed

+446
-36
lines changed

4 files changed

+446
-36
lines changed

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@
318318
{
319319
"$ref": "https://schema.management.azure.com/schemas/2017-05-01-preview/Microsoft.Insights.json#/subscription_resourceDefinitions/diagnosticSettings"
320320
},
321+
{
322+
"$ref": "https://schema.management.azure.com/schemas/2021-05-01-preview/Microsoft.Insights.json#/subscription_resourceDefinitions/diagnosticSettings"
323+
},
321324
{
322325
"$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.ManagedNetwork.json#/unknown_resourceDefinitions/scopeAssignments"
323326
},

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@
171171
{
172172
"$ref": "https://schema.management.azure.com/schemas/2020-01-01-preview/Microsoft.Insights.json#/managementGroup_resourceDefinitions/diagnosticSettings"
173173
},
174+
{
175+
"$ref": "https://schema.management.azure.com/schemas/2021-05-01-preview/Microsoft.Insights.json#/managementGroup_resourceDefinitions/diagnosticSettings"
176+
},
174177
{
175178
"$ref": "https://schema.management.azure.com/schemas/2018-07-01-preview/Microsoft.PolicyInsights.json#/unknown_resourceDefinitions/remediations"
176179
},

schemas/2021-02-01-preview/Microsoft.Insights.json

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,6 @@
8080
}
8181
},
8282
"definitions": {
83-
"Action": {
84-
"type": "object",
85-
"properties": {
86-
"actionGroupId": {
87-
"type": "string",
88-
"description": "Action Group resource Id to invoke when the alert fires."
89-
},
90-
"webHookProperties": {
91-
"oneOf": [
92-
{
93-
"type": "object",
94-
"additionalProperties": {
95-
"type": "string"
96-
},
97-
"properties": {}
98-
},
99-
{
100-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
101-
}
102-
],
103-
"description": "The properties of a webhook object."
104-
}
105-
},
106-
"description": "Actions to invoke when the alert fires."
107-
},
10883
"Condition": {
10984
"type": "object",
11085
"properties": {
@@ -297,17 +272,8 @@
297272
"type": "object",
298273
"properties": {
299274
"actions": {
300-
"oneOf": [
301-
{
302-
"type": "array",
303-
"items": {
304-
"$ref": "#/definitions/Action"
305-
}
306-
},
307-
{
308-
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
309-
}
310-
],
275+
"type": "object",
276+
"properties": {},
311277
"description": "Actions to invoke when the alert fires."
312278
},
313279
"autoMitigate": {

0 commit comments

Comments
 (0)