From be7f6e528aa47a32800071f79dd3a3242834f137 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 11 May 2021 20:39:17 +0000 Subject: [PATCH] CodeGen from PR 14362 in Azure/azure-rest-api-specs Merge a3cd7d56f965a421efdf853bc24b1508a1a79422 into 0bfd6032ae89b4d8d7c55ac23309cb6e30b6c1e0 --- schemas/2014-04-01/Microsoft.Insights.json | 710 ++++++++++++++++++ schemas/2015-04-01/Microsoft.Insights.json | 28 +- schemas/2016-03-01/Microsoft.Insights.json | 4 +- .../Microsoft.Insights.json | 8 +- schemas/common/autogeneratedResources.json | 3 + 5 files changed, 739 insertions(+), 14 deletions(-) diff --git a/schemas/2014-04-01/Microsoft.Insights.json b/schemas/2014-04-01/Microsoft.Insights.json index 7d0836a595..9ed5837ac4 100644 --- a/schemas/2014-04-01/Microsoft.Insights.json +++ b/schemas/2014-04-01/Microsoft.Insights.json @@ -62,6 +62,65 @@ "type" ], "description": "Microsoft.Insights/alertrules" + }, + "autoscalesettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2014-04-01" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The autoscale setting name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AutoscaleSetting" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A setting that contains all of the configuration for the automatic scaling of a resource." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/autoscalesettings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/autoscalesettings" } }, "definitions": { @@ -135,6 +194,221 @@ ], "description": "An alert rule." }, + "AutoscaleNotification": { + "type": "object", + "properties": { + "email": { + "oneOf": [ + { + "$ref": "#/definitions/EmailNotification" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Email notification of an autoscale event." + }, + "operation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Scale" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operation associated with the notification and its value must be \"scale\"" + }, + "webhooks": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebhookNotification" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of webhook notifications." + } + }, + "required": [ + "operation" + ], + "description": "Autoscale notification." + }, + "AutoscaleProfile": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "$ref": "#/definitions/ScaleCapacity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of instances that can be used during this profile." + }, + "fixedDate": { + "oneOf": [ + { + "$ref": "#/definitions/TimeWindow" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A specific date-time for the profile." + }, + "name": { + "type": "string", + "description": "the name of the profile." + }, + "recurrence": { + "oneOf": [ + { + "$ref": "#/definitions/Recurrence" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used." + }, + "rules": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRule" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified." + } + }, + "required": [ + "capacity", + "name", + "rules" + ], + "description": "Autoscale profile." + }, + "AutoscaleSetting": { + "type": "object", + "properties": { + "enabled": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'." + }, + "name": { + "type": "string", + "description": "the name of the autoscale setting." + }, + "notifications": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleNotification" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of notifications." + }, + "profiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/AutoscaleProfile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified." + }, + "targetResourceLocation": { + "type": "string", + "description": "the location of the resource that the autoscale setting should be added to." + }, + "targetResourceUri": { + "type": "string", + "description": "the resource identifier of the resource that the autoscale setting should be added to." + } + }, + "required": [ + "profiles" + ], + "description": "A setting that contains all of the configuration for the automatic scaling of a resource." + }, + "EmailNotification": { + "type": "object", + "properties": { + "customEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored." + }, + "sendToSubscriptionAdministrator": { + "oneOf": [ + { + "type": "boolean", + "default": false + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether to send email to subscription administrator." + }, + "sendToSubscriptionCoAdministrators": { + "oneOf": [ + { + "type": "boolean", + "default": false + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether to send email to subscription co-administrators." + } + }, + "description": "Email notification of an autoscale event." + }, "LocationThresholdRuleCondition": { "type": "object", "properties": { @@ -233,6 +507,240 @@ ], "description": "A management event rule condition." }, + "MetricTrigger": { + "type": "object", + "properties": { + "dimensions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ScaleRuleMetricDimension" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of dimension conditions. For example: [{\"DimensionName\":\"AppName\",\"Operator\":\"Equals\",\"Values\":[\"App1\"]},{\"DimensionName\":\"Deployment\",\"Operator\":\"Equals\",\"Values\":[\"default\"]}]." + }, + "dividePerInstance": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a value indicating whether metric should divide per instance." + }, + "metricName": { + "type": "string", + "description": "the name of the metric that defines what the rule monitors." + }, + "metricNamespace": { + "type": "string", + "description": "the namespace of the metric that defines what the rule monitors." + }, + "metricResourceLocation": { + "type": "string", + "description": "the location of the resource the rule monitors." + }, + "metricResourceUri": { + "type": "string", + "description": "the resource identifier of the resource the rule monitors." + }, + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equals", + "NotEquals", + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operator that is used to compare the metric data and the threshold." + }, + "statistic": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Average", + "Min", + "Max", + "Sum", + "Count" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the metric statistic type. How the metrics from multiple instances are combined." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the threshold of the metric that triggers the scale action." + }, + "timeAggregation": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total", + "Count", + "Last" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "time aggregation type. How the data that is collected should be combined over time. The default value is Average." + }, + "timeGrain": { + "type": "string", + "format": "duration", + "description": "the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute." + }, + "timeWindow": { + "type": "string", + "format": "duration", + "description": "the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes." + } + }, + "required": [ + "metricName", + "metricResourceUri", + "operator", + "statistic", + "threshold", + "timeAggregation", + "timeGrain", + "timeWindow" + ], + "description": "The trigger that results in a scaling action." + }, + "Recurrence": { + "type": "object", + "properties": { + "frequency": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Second", + "Minute", + "Hour", + "Day", + "Week", + "Month", + "Year" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly." + }, + "schedule": { + "oneOf": [ + { + "$ref": "#/definitions/RecurrentSchedule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The scheduling constraints for when the profile begins." + } + }, + "required": [ + "frequency", + "schedule" + ], + "description": "The repeating times at which this profile begins. This element is not used if the FixedDate element is used." + }, + "RecurrentSchedule": { + "type": "object", + "properties": { + "days": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the collection of days that the profile takes effect on. Possible values are Sunday through Saturday." + }, + "hours": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported)." + }, + "minutes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "integer" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of minutes at which the profile takes effect at." + }, + "timeZone": { + "type": "string", + "description": "the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time" + } + }, + "required": [ + "days", + "hours", + "minutes", + "timeZone" + ], + "description": "The scheduling constraints for when the profile begins." + }, "RuleAction": { "type": "object", "oneOf": [ @@ -465,6 +973,159 @@ ], "description": "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case." }, + "ScaleAction": { + "type": "object", + "properties": { + "cooldown": { + "type": "string", + "format": "duration", + "description": "the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format." + }, + "direction": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "Increase", + "Decrease" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the scale direction. Whether the scaling action increases or decreases the number of instances." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ChangeCount", + "PercentChangeCount", + "ExactCount", + "ServiceAllowedNextValue" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the type of action that should occur when the scale rule fires." + }, + "value": { + "type": "string", + "default": "1", + "description": "the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1." + } + }, + "required": [ + "cooldown", + "direction", + "type" + ], + "description": "The parameters for the scaling action." + }, + "ScaleCapacity": { + "type": "object", + "properties": { + "default": { + "type": "string", + "description": "the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default." + }, + "maximum": { + "type": "string", + "description": "the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription." + }, + "minimum": { + "type": "string", + "description": "the minimum number of instances for the resource." + } + }, + "required": [ + "default", + "maximum", + "minimum" + ], + "description": "The number of instances that can be used during this profile." + }, + "ScaleRule": { + "type": "object", + "properties": { + "metricTrigger": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTrigger" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The trigger that results in a scaling action." + }, + "scaleAction": { + "oneOf": [ + { + "$ref": "#/definitions/ScaleAction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The parameters for the scaling action." + } + }, + "required": [ + "metricTrigger", + "scaleAction" + ], + "description": "A rule that provide the triggers and parameters for the scaling action." + }, + "ScaleRuleMetricDimension": { + "type": "object", + "properties": { + "DimensionName": { + "type": "string", + "description": "Name of the dimension." + }, + "Operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Equals", + "NotEquals" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values." + }, + "Values": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "list of dimension values. For example: [\"App1\",\"App2\"]." + } + }, + "required": [ + "DimensionName", + "Operator", + "Values" + ], + "description": "Specifies an auto scale rule metric dimension." + }, "ThresholdRuleCondition": { "type": "object", "properties": { @@ -532,6 +1193,55 @@ "threshold" ], "description": "A rule condition based on a metric crossing a threshold." + }, + "TimeWindow": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time", + "description": "the end time for the profile in ISO 8601 format." + }, + "start": { + "type": "string", + "format": "date-time", + "description": "the start time for the profile in ISO 8601 format." + }, + "timeZone": { + "type": "string", + "description": "the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time" + } + }, + "required": [ + "end", + "start" + ], + "description": "A specific date-time for the profile." + }, + "WebhookNotification": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "a property bag of settings. This value can be empty." + }, + "serviceUri": { + "type": "string", + "description": "the service address to receive the notification." + } + }, + "description": "Webhook notification of an autoscale event." } } } \ No newline at end of file diff --git a/schemas/2015-04-01/Microsoft.Insights.json b/schemas/2015-04-01/Microsoft.Insights.json index eed7f42641..9e4d34c4ff 100644 --- a/schemas/2015-04-01/Microsoft.Insights.json +++ b/schemas/2015-04-01/Microsoft.Insights.json @@ -1,8 +1,8 @@ { "id": "https://schema.management.azure.com/schemas/2015-04-01/Microsoft.Insights.json#", "$schema": "http://json-schema.org/draft-04/schema#", - "title": "microsoft.insights", - "description": "microsoft insights Resource Types", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", "resourceDefinitions": { "autoscalesettings": { "type": "object", @@ -50,7 +50,7 @@ "type": { "type": "string", "enum": [ - "microsoft.insights/autoscalesettings" + "Microsoft.Insights/autoscalesettings" ] } }, @@ -61,7 +61,7 @@ "properties", "type" ], - "description": "microsoft.insights/autoscalesettings" + "description": "Microsoft.Insights/autoscalesettings" } }, "definitions": { @@ -222,6 +222,10 @@ ], "description": "the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified." }, + "targetResourceLocation": { + "type": "string", + "description": "the location of the resource that the autoscale setting should be added to." + }, "targetResourceUri": { "type": "string", "description": "the resource identifier of the resource that the autoscale setting should be added to." @@ -252,7 +256,8 @@ "sendToSubscriptionAdministrator": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -263,7 +268,8 @@ "sendToSubscriptionCoAdministrators": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -310,6 +316,10 @@ "type": "string", "description": "the namespace of the metric that defines what the rule monitors." }, + "metricResourceLocation": { + "type": "string", + "description": "the location of the resource the rule monitors." + }, "metricResourceUri": { "type": "string", "description": "the resource identifier of the resource the rule monitors." @@ -341,7 +351,8 @@ "Average", "Min", "Max", - "Sum" + "Sum", + "Count" ] }, { @@ -534,7 +545,8 @@ "enum": [ "ChangeCount", "PercentChangeCount", - "ExactCount" + "ExactCount", + "ServiceAllowedNextValue" ] }, { diff --git a/schemas/2016-03-01/Microsoft.Insights.json b/schemas/2016-03-01/Microsoft.Insights.json index 6374304c1b..dcab9d5e83 100644 --- a/schemas/2016-03-01/Microsoft.Insights.json +++ b/schemas/2016-03-01/Microsoft.Insights.json @@ -111,7 +111,7 @@ "type": { "type": "string", "enum": [ - "microsoft.insights/logprofiles" + "Microsoft.Insights/logprofiles" ] } }, @@ -122,7 +122,7 @@ "properties", "type" ], - "description": "microsoft.insights/logprofiles" + "description": "Microsoft.Insights/logprofiles" } }, "definitions": { diff --git a/schemas/2017-05-01-preview/Microsoft.Insights.json b/schemas/2017-05-01-preview/Microsoft.Insights.json index 32216a5b40..70cb315249 100644 --- a/schemas/2017-05-01-preview/Microsoft.Insights.json +++ b/schemas/2017-05-01-preview/Microsoft.Insights.json @@ -1,8 +1,8 @@ { "id": "https://schema.management.azure.com/schemas/2017-05-01-preview/Microsoft.Insights.json#", "$schema": "http://json-schema.org/draft-04/schema#", - "title": "microsoft.insights", - "description": "microsoft insights Resource Types", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", "resourceDefinitions": {}, "subscription_resourceDefinitions": { "diagnosticSettings": { @@ -77,7 +77,7 @@ "type": { "type": "string", "enum": [ - "microsoft.insights/diagnosticSettings" + "Microsoft.Insights/diagnosticSettings" ] } }, @@ -87,7 +87,7 @@ "properties", "type" ], - "description": "microsoft.insights/diagnosticSettings" + "description": "Microsoft.Insights/diagnosticSettings" } }, "definitions": { diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 155dd30ac7..0f44cec37a 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -5512,6 +5512,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules" }, + { + "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/autoscalesettings" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-04-01/Microsoft.Insights.json#/resourceDefinitions/autoscalesettings" },