From 5b58cfd50545e31b2c997a57d7a656f99a26963a Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Mon, 15 Jul 2019 14:14:09 -0400 Subject: [PATCH] chore: jsonfmt alertsmanagement (#6596) --- .../2019-05-05-preview/AlertsManagement.json | 6 +- .../SmartDetectorAlertRulesApi.json | 6 +- .../SmartDetectorAlertRule_Patch.json | 88 ++++++++++--------- 3 files changed, 51 insertions(+), 49 deletions(-) diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json index 1a440f9f17e7..ed46e4055106 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json @@ -2357,8 +2357,8 @@ "type": "string", "description": "Identification of the information to be retrieved by API call", "enum": [ - "MonitorServiceList" - ], + "MonitorServiceList" + ], "x-ms-enum": { "name": "metadataIdentifier", "modelAsString": true @@ -2404,4 +2404,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json index 99e7a6e3d432..0306e06fb2bc 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/SmartDetectorAlertRulesApi.json @@ -381,7 +381,7 @@ "type": "string", "description": "The resource location.", "default": "global" - }, + }, "tags": { "type": "object", "description": "The resource tags." @@ -447,7 +447,7 @@ "$ref": "#/definitions/AlertRulePatchProperties", "description": "The properties of the alert rule.", "minProperties": 1 - } + } }, "description": "The alert rule patch information" }, @@ -649,4 +649,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json index 81f938cac810..ab4de65dc113 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/stable/2019-06-01/examples/SmartDetectorAlertRule_Patch.json @@ -1,48 +1,50 @@ { + "parameters": { + "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", + "resourceGroupName": "MyAlertRules", + "alertRuleName": "MyAlertRule", + "api-version": "2019-06-01", "parameters": { - "subscriptionId": "b368ca2f-e298-46b7-b0ab-012281956afa", - "resourceGroupName": "MyAlertRules", - "alertRuleName": "MyAlertRule", - "api-version": "2019-06-01", - "parameters": { - "tags": {"newKey": "newVal"}, - "properties": { - "description": "New description for patching", - "frequency": "PT1M" - } - } - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", - "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", - "name": "MyAlertRule", - "location": "global", - "tags": { - "newKey": "newVal" - }, - "properties": { - "description": "New description for patching", - "state": "Enabled", - "severity": "Sev3", - "frequency": "PT1M", - "detector": { - "id": "VMMemoryLeak" - }, - "scope": [ - "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" - ], - "actionGroups": [ - { - "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" - } - ], - "throttling": { - "duration": "PT20M" - } - } + "tags": { + "newKey": "newVal" + }, + "properties": { + "description": "New description for patching", + "frequency": "PT1M" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule", + "type": "Microsoft.AlertsManagement/smartDetectorAlertRules", + "name": "MyAlertRule", + "location": "global", + "tags": { + "newKey": "newVal" + }, + "properties": { + "description": "New description for patching", + "state": "Enabled", + "severity": "Sev3", + "frequency": "PT1M", + "detector": { + "id": "VMMemoryLeak" + }, + "scope": [ + "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1" + ], + "actionGroups": [ + { + "actionGroupId": "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup" } + ], + "throttling": { + "duration": "PT20M" + } } + } } -} \ No newline at end of file + } +}