diff --git a/specification/monitor/resource-manager/microsoft.insights/2015-04-01/autoscale_API.json b/specification/monitor/resource-manager/microsoft.insights/2015-04-01/autoscale_API.json index c6921f1fda2d..ae2f292477af 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2015-04-01/autoscale_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2015-04-01/autoscale_API.json @@ -1254,7 +1254,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/AutoscaleSetting" + "$ref": "#/definitions/AutoscaleSetting", + "description": "The autoscale setting of the resource." } }, "description": "The autoscale setting resource." @@ -1270,7 +1271,8 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/AutoscaleSetting" + "$ref": "#/definitions/AutoscaleSetting", + "description": "The autoscale setting properties of the update operation." } } }, @@ -1338,4 +1340,4 @@ "x-ms-parameter-location": "method" } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/alertRules_API.json b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/alertRules_API.json index 3a10ec211dde..162dcd4696d1 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/alertRules_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/alertRules_API.json @@ -278,6 +278,72 @@ "description": "Successful request to update an alert rule", "schema": { "$ref": "#/definitions/AlertRuleResource" + }, + "examples": { + "application/json": { + "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name":"chiricutin", + "type":"Microsoft.Insights/alertRules", + "location":"West US", + "tags": { + "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest2":"Resource" + }, + "properties": { + "name":"chiricutin", + "description":"Pura Vida", + "isEnabled":false, + "condition": { + "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName":"Requests" + }, + "operator":"GreaterThan", + "threshold":3.0, + "windowSize":"PT5M", + "timeAggregation":"Total" + }, + "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", + "actions":[] + } + } + } + }, + "201": { + "description": "Successful request to update an alert rule that resulted in a creation of the alert rule", + "schema": { + "$ref": "#/definitions/AlertRuleResource" + }, + "examples": { + "application/json": { + "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", + "name":"chiricutin", + "type":"Microsoft.Insights/alertRules", + "location":"West US", + "tags": { + "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest2":"Resource" + }, + "properties": { + "name":"chiricutin", + "description":"Pura Vida", + "isEnabled":false, + "condition": { + "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + "dataSource": { + "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", + "metricName":"Requests" + }, + "operator":"GreaterThan", + "threshold":3.0, + "windowSize":"PT5M", + "timeAggregation":"Total" + }, + "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", + "actions":[] + } + } } } } @@ -506,7 +572,8 @@ "x-ms-enum": { "name": "ConditionOperator", "modelAsString": false - } + }, + "description": "Operators allowed in the rule condition." }, "TimeAggregationOperator": { "type": "string", @@ -520,7 +587,8 @@ "x-ms-enum": { "name": "TimeAggregationOperator", "modelAsString": false - } + }, + "description": "Aggregation operators allowed in a rule." }, "ThresholdRuleCondition": { "x-ms-discriminator-value": "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", @@ -765,7 +833,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/AlertRule" + "$ref": "#/definitions/AlertRule", + "description": "The alert rule properties of the resource." } }, "description": "The alert rule resource." @@ -781,7 +850,8 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/AlertRule" + "$ref": "#/definitions/AlertRule", + "description": "The properties of an alert rule." } } }, @@ -844,4 +914,4 @@ "x-ms-parameter-location": "method" } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/createOrUpdateLogProfile.json b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/createOrUpdateLogProfile.json index fa7f4c588a1c..437c9a43999e 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/createOrUpdateLogProfile.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/createOrUpdateLogProfile.json @@ -1,29 +1,20 @@ { "parameters": { - "subscriptionId": "b67f7fec-69fc-4974-9099-a26bd6ffeda3", + "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", "logProfileName": "Rac46PostSwapRG", "api-version": "2016-03-01", "parameters": { - "location": "West US", + "location": "", "tags": { }, "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" + "locations": [ "global" ], + "categories": [ "Write", "Delete", "Action" ], + "retentionPolicy": { + "enabled": true, + "days": 3 }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] + "storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId": "" } } }, @@ -31,62 +22,26 @@ "200": { "headers": { }, "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, - "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] - } - } - }, - "201": { - "headers": { }, - "body": { - "id":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin", - "name":"chiricutin", - "type":"Microsoft.Insights/alertRules", - "location":"West US", - "tags": { - "$type":"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage","hidden-link:/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest":"Resource" - }, + "id":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/providers/microsoft.insights/logprofiles/default", + "type":"", + "name":"default", + "location":"", + "tags":null, "properties": { - "name":"chiricutin", - "description":"Pura Vida", - "isEnabled":true, - "condition": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "dataSource": { - "odata.type":"Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - "resourceUri":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - "metricName":"Requests" - }, - "operator":"GreaterThan", - "threshold":3.0, - "windowSize":"PT5M", - "timeAggregation":"Total" - }, - "lastUpdatedTime":"2016-11-23T21:23:52.0221265Z", - "actions":[] + "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", + "serviceBusRuleId":"", + "locations":[ + "global" + ], + "categories": [ + "Delete", + "Write", + "Action" + ], + "retentionPolicy": { + "enabled":true, + "days":3 + } } } } diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/deleteLogProfile.json b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/deleteLogProfile.json index 7005e28af019..1d8b3c9c57c4 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/deleteLogProfile.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/examples/deleteLogProfile.json @@ -8,10 +8,6 @@ "200": { "headers": {}, "body": null - }, - "204": { - "headers": {}, - "body": null } } } \ No newline at end of file diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/logProfiles_API.json b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/logProfiles_API.json index d9a3bb3a3e07..1b53d0159d1f 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-03-01/logProfiles_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-03-01/logProfiles_API.json @@ -57,7 +57,7 @@ } }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/deleteLogProfile.json" } + "Delete log profile": { "$ref": "./examples/deleteLogProfile.json" } } }, "get": { @@ -117,7 +117,7 @@ } }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/getLogProfile.json" } + "Get log profile": { "$ref": "./examples/getLogProfile.json" } } }, "put": { @@ -180,7 +180,7 @@ } }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/createOrUpdateLogProfile.json" } + "Create or update a log profile": { "$ref": "./examples/createOrUpdateLogProfile.json" } } }, "patch": { @@ -249,7 +249,7 @@ "nextLinkName": null }, "x-ms-examples": { - "List alert rules": { "$ref": "./examples/listLogProfile.json" } + "List log profiles": { "$ref": "./examples/listLogProfile.json" } } } } @@ -351,7 +351,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/LogProfileProperties" + "$ref": "#/definitions/LogProfileProperties", + "description": "The log profile properties of the resource." } }, "required": ["properties"], @@ -368,7 +369,8 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/LogProfileProperties" + "$ref": "#/definitions/LogProfileProperties", + "description": "The log profile properties for an update operation." } } }, @@ -424,4 +426,4 @@ "x-ms-parameter-location": "method" } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json index fdcbb55c41a6..2257369319d9 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/createOrUpdateServiceDiagnosticSetting.json @@ -3,7 +3,7 @@ "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", "api-version": "2016-09-01", "parameters": { - "location":"", + "location": "", "properties": { "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/updateServiceDiagnosticSetting.json b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/updateServiceDiagnosticSetting.json index eaee9f609f4e..9dc9115491a0 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/updateServiceDiagnosticSetting.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/examples/updateServiceDiagnosticSetting.json @@ -2,8 +2,8 @@ "parameters": { "resourceUri": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", "api-version": "2016-09-01", - "parameters": { - "location":"", + "serviceDiagnosticSettingsResource": { + "tags": null, "properties": { "storageAccountId":"/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", "serviceBusRuleId":"/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/andy1101/providers/Microsoft.EventHub/namespaces/andy1101/authorizationrules/RootManageSharedAccessKey", diff --git a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/serviceDiagnosticsSettings_API.json b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/serviceDiagnosticsSettings_API.json index 3bff6399872d..8d983876394e 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2016-09-01/serviceDiagnosticsSettings_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2016-09-01/serviceDiagnosticsSettings_API.json @@ -347,7 +347,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ServiceDiagnosticSettings" + "$ref": "#/definitions/ServiceDiagnosticSettings", + "description": "The service diagnostics settings of the resource." } }, "description": "Description of a service diagnostic setting" @@ -363,7 +364,8 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ServiceDiagnosticSettings" + "$ref": "#/definitions/ServiceDiagnosticSettings", + "description": "The service diagnostics settings for an update operation." } } }, @@ -399,4 +401,4 @@ "x-ms-parameter-location": "method" } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/actionGroups_API.json b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/actionGroups_API.json index c51dbb6da8d3..13c7fa2499a8 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/actionGroups_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/actionGroups_API.json @@ -115,11 +115,8 @@ "$ref": "#/definitions/ActionGroupResource" } }, - "404": { - "description": "The action group does not exist." - }, "default": { - "description": "An error occurred and the action group could not be retrieved." + "description": "An error occurred and the action group could not be retrieved. 404: The action group does not exist." } } }, @@ -263,14 +260,8 @@ "200": { "description": "The receiver was successfully enabled." }, - "409": { - "description": "The receiver is already enabled in the action group." - }, - "404": { - "description": "The action group was not found or no matching receiver was found in the action group." - }, "default": { - "description": "An error occurred and the receiver could not be enabled." + "description": "An error occurred and the receiver could not be enabled. 409: The receiver is already enabled in the action group. 404: The action group was not found or no matching receiver was found in the action group." } } } @@ -325,7 +316,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ActionGroup" + "$ref": "#/definitions/ActionGroup", + "description": "The action groups properties of the resource." } } }, @@ -398,7 +390,8 @@ }, "status": { "readOnly": true, - "$ref": "#/definitions/ReceiverStatus" + "$ref": "#/definitions/ReceiverStatus", + "description": "The receiver status of the e-mail." } }, "required": [ @@ -423,7 +416,8 @@ }, "status": { "readOnly": true, - "$ref": "#/definitions/ReceiverStatus" + "$ref": "#/definitions/ReceiverStatus", + "description": "The status of the receiver." } }, "required": [ @@ -507,4 +501,4 @@ "description": "Client Api Version." } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/activityLogAlerts_API.json b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/activityLogAlerts_API.json index 080538479dbf..0da68f559dda 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/activityLogAlerts_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/activityLogAlerts_API.json @@ -335,7 +335,8 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlert" + "$ref": "#/definitions/ActivityLogAlert", + "description": "The activity log alert properties of the resource." } } }, @@ -476,7 +477,8 @@ }, "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/ActivityLogAlertPatch" + "$ref": "#/definitions/ActivityLogAlertPatch", + "description": "The activity log alert settings for an update operation." } } }, @@ -523,4 +525,4 @@ "description": "Client Api Version." } } -} +} diff --git a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/examples/deleteActivityLogAlert.json b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/examples/deleteActivityLogAlert.json index 9e64bbf6ceda..7a3fbf91c0c6 100644 --- a/specification/monitor/resource-manager/microsoft.insights/2017-04-01/examples/deleteActivityLogAlert.json +++ b/specification/monitor/resource-manager/microsoft.insights/2017-04-01/examples/deleteActivityLogAlert.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d", "resourceGroupName": "Default-ActivityLogAlerts", - "actionGroupName": "SampleActivityLogAlert", + "activityLogAlertName": "SampleActivityLogAlert", "api-version": "2017-04-01" }, "responses": {