From fbe62b7dd7a8052bc7f159de421729168b2508ff Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 8 Feb 2021 08:37:53 +0000 Subject: [PATCH] CodeGen from PR 12895 in Azure/azure-rest-api-specs Merge b08b441c7cfeec5a96e9dbc9e0e603f7f323eae6 into a12ca5d0445da1f4a54fe726b0822290ae1f1e51 --- schemas/2014-04-01/Microsoft.Insights.json | 1120 +++++++---------- .../Microsoft.Insights.json | 2 +- 2 files changed, 465 insertions(+), 657 deletions(-) diff --git a/schemas/2014-04-01/Microsoft.Insights.json b/schemas/2014-04-01/Microsoft.Insights.json index 5775d279bc..bffd93bd54 100644 --- a/schemas/2014-04-01/Microsoft.Insights.json +++ b/schemas/2014-04-01/Microsoft.Insights.json @@ -2,728 +2,536 @@ "id": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#", "$schema": "http://json-schema.org/draft-04/schema#", "title": "Microsoft.Insights", - "description": "Microsoft Insights Types", + "description": "Microsoft Insights Resource Types", "resourceDefinitions": { "alertrules": { "type": "object", "properties": { - "type": { - "enum": [ - "Microsoft.Insights/alertrules" - ] - }, "apiVersion": { + "type": "string", "enum": [ "2014-04-01" ] }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the rule." + }, "properties": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/alertrules: Name of the alert rule." - }, - "description": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/alertrules: Description of the alert rule that will be included in the alert email." - }, - "isEnabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Microsoft.Insights/alertrules: Indicates whether the alert rule is enabled." + "oneOf": [ + { + "$ref": "#/definitions/AlertRule" }, - "condition": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "object", - "properties": { - "odata.type": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" - ] - } - ], - "description": "Microsoft.Insights/alertrules: Type of condition this alert rule uses." - }, - "dataSource": { - "type": "object", - "properties": { - "odata.type": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" - ] - } - ], - "description": "Microsoft.Insights/alertrules: Type of data source this condition uses." - }, - "resourceUri": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/alertrules: The resource identifier of the resource the rule monitors." - }, - "metricName": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/alertrules: The name of the metric that defines what the rule monitors." - }, - "metricNamespace": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "WindowsAzure.Availability" - ] - } - ], - "description": "Microsoft.Insights/alertrules: Only should be present for availability level metrics, where the value must be WindowsAzure.Availability." - } - }, - "description": "Microsoft.Insights/alertrules: The resource from which the rule collects its data." - }, - "operator": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ] - } - ], - "description": "Microsoft.Insights/alertrules: The operator used to compare the data and the threshold." - }, - "threshold": { - "oneOf": [ - { - "type": "number", - "minimum": 0 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Microsoft.Insights/alertrules: The threshold value that activates the alert. Only for ThresholdRuleConditions." - }, - "failedLocationCount": { - "oneOf": [ - { - "type": "number", - "minimum": 0 - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Microsoft.Insights/alertrules: The number of locations that must fail to activate the alert. Only for LocationThresholdRuleConditions." - }, - "windowSize": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/Iso8601Duration" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Microsoft.Insights/alertrules: The period of time that is used to monitor alert activity based on the threshold. Must be between 5 minutes and 1 day. ISO 8601 duration format." - } - } - } - ], - "description": "Microsoft.Insights/alertrules: The condition that results in the alert rule being activated." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An alert rule." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} }, - "action": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "object", - "properties": { - "odata.type": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" - ] - } - ], - "description": "Microsoft.Insights/alertrules: The type of action that is performed by the alert rule." - }, - "sendToServiceOwners": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "boolean" - } - ], - "description": "Microsoft.Insights/alertrules: Whether the administrators (service and co-adiminstrators) of the service should be notified when the alert is activated." - }, - "customEmails": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "array", - "minItems": 0, - "items": { - "type": "string", - "minLength": 1 - } - } - ], - "description": "Microsoft.Insights/alertrules: A list of administrator's custom email addresses notifiy of the activation of the alert." - } - } - } - ], - "description": "Microsoft.Insights/alertrules: The action that is performed when the alert rule becomes active, and when an alert condition is resolved." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - } + ], + "description": "Resource tags" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/alertrules" + ] } }, "required": [ - "type", "apiVersion", + "location", + "name", "properties", - "location" + "type" ], "description": "Microsoft.Insights/alertrules" - }, - "components": { + } + }, + "definitions": { + "AlertRule": { "type": "object", "properties": { - "type": { - "enum": [ - "Microsoft.Insights/components" - ] + "action": { + "oneOf": [ + { + "$ref": "#/definitions/RuleAction" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The action that is performed when the alert rule becomes active, and when an alert condition is resolved." }, - "apiVersion": { - "enum": [ - "2014-04-01" - ] + "actions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/RuleAction" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved." }, - "properties": { - "type": "object", - "properties": { - "applicationId": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/components: applicationId" + "condition": { + "oneOf": [ + { + "$ref": "#/definitions/RuleCondition" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The condition that results in the alert rule being activated." + }, + "description": { + "type": "string", + "description": "the description of the alert rule that will be included in the alert email." + }, + "isEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - } + ], + "description": "the flag that indicates whether the alert rule is enabled." + }, + "name": { + "type": "string", + "description": "the name of the alert rule." + }, + "provisioningState": { + "type": "string", + "description": "the provisioning state." } }, "required": [ - "type", - "apiVersion", - "properties", - "location" + "condition", + "isEnabled", + "name" ], - "description": "Microsoft.Insights/components" + "description": "An alert rule." }, - "webtests": { + "LocationThresholdRuleCondition": { "type": "object", "properties": { - "type": { - "enum": [ - "Microsoft.Insights/webtests" - ] + "failedLocationCount": { + "oneOf": [ + { + "type": "integer", + "minimum": 0 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the number of locations that must fail to activate the alert." }, - "apiVersion": { + "odata.type": { + "type": "string", "enum": [ - "2014-04-01" + "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" ] }, - "properties": { - "type": "object", - "properties": { - "provisioningState": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: provisioning state." - }, - "Name": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: name of the webtest." - }, - "Description": { + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." + } + }, + "required": [ + "failedLocationCount", + "odata.type" + ], + "description": "A rule condition based on a certain number of locations failing." + }, + "ManagementEventAggregationCondition": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: description of the webtest." + "enum": [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] }, - "Enabled": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "boolean" - } - ], - "description": "Microsoft.Insights/webtests: Is the webtest enabled." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the condition operator." + }, + "threshold": { + "oneOf": [ + { + "type": "number" }, - "Frequency": { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/numberOrExpression", - "description": "Microsoft.Insights/webtests: Frequency of the webtest." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The threshold value that activates the alert." + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." + } + }, + "description": "How the data that is collected should be combined over time." + }, + "ManagementEventRuleCondition": { + "type": "object", + "properties": { + "aggregation": { + "oneOf": [ + { + "$ref": "#/definitions/ManagementEventAggregationCondition" }, - "Timeout": { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/numberOrExpression", - "description": "Microsoft.Insights/webtests: Timeout for the webtest." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "How the data that is collected should be combined over time." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" + ] + } + }, + "required": [ + "odata.type" + ], + "description": "A management event rule condition." + }, + "RuleAction": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/RuleEmailAction" + }, + { + "$ref": "#/definitions/RuleWebhookAction" + } + ], + "properties": {}, + "description": "The action that is performed when the alert rule becomes active, and when an alert condition is resolved." + }, + "RuleCondition": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/ThresholdRuleCondition" + }, + { + "$ref": "#/definitions/LocationThresholdRuleCondition" + }, + { + "$ref": "#/definitions/ManagementEventRuleCondition" + } + ], + "properties": { + "dataSource": { + "oneOf": [ + { + "$ref": "#/definitions/RuleDataSource" }, - "Locations": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "array", - "items": { - "type": "object", - "properties": { - "Id": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: Location id of the webtest" - } - } - } - } - ], - "description": "Microsoft.Insights/webtests: Locations of the webtest." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource from which the rule collects its data." + } + }, + "description": "The condition that results in the alert rule being activated." + }, + "RuleDataSource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/RuleMetricDataSource" + }, + { + "$ref": "#/definitions/RuleManagementEventDataSource" + } + ], + "properties": { + "legacyResourceId": { + "type": "string", + "description": "the legacy resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule." + }, + "metricNamespace": { + "type": "string", + "description": "the namespace of the metric." + }, + "resourceLocation": { + "type": "string", + "description": "the location of the resource." + }, + "resourceUri": { + "type": "string", + "description": "the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule." + } + }, + "description": "The resource from which the rule collects its data." + }, + "RuleEmailAction": { + "type": "object", + "properties": { + "customEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } }, - "Configuration": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "object", - "properties": { - "WebTest": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: WebTest configuration." - } - } - } - ], - "description": "Microsoft.Insights/webtests: Configuration for the webtest." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the list of administrator's custom email addresses to notify of the activation of the alert." + }, + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" + ] + }, + "sendToServiceOwners": { + "oneOf": [ + { + "type": "boolean" }, - "SyntheticMonitorId": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/webtests: Synthetic monitor id." + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - } + ], + "description": "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated." } }, "required": [ - "type", - "apiVersion", - "properties", - "location" + "odata.type" ], - "description": "Microsoft.Insights/webtests" + "description": "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case." }, - "autoscalesettings": { + "RuleManagementEventClaimsDataSource": { "type": "object", "properties": { - "type": { + "emailAddress": { + "type": "string", + "description": "the email address." + } + }, + "description": "The claims for a rule management event data source." + }, + "RuleManagementEventDataSource": { + "type": "object", + "properties": { + "claims": { + "oneOf": [ + { + "$ref": "#/definitions/RuleManagementEventClaimsDataSource" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The claims for a rule management event data source." + }, + "eventName": { + "type": "string", + "description": "the event name." + }, + "eventSource": { + "type": "string", + "description": "the event source." + }, + "level": { + "type": "string", + "description": "the level." + }, + "odata.type": { + "type": "string", "enum": [ - "Microsoft.Insights/autoscalesettings" + "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource" ] }, - "apiVersion": { + "operationName": { + "type": "string", + "description": "The name of the operation that should be checked for. If no name is provided, any operation will match." + }, + "resourceGroupName": { + "type": "string", + "description": "the resource group name." + }, + "resourceProviderName": { + "type": "string", + "description": "the resource provider name." + }, + "status": { + "type": "string", + "description": "The status of the operation that should be checked for. If no status is provided, any status will match." + }, + "subStatus": { + "type": "string", + "description": "the substatus." + } + }, + "required": [ + "odata.type" + ], + "description": "A rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case." + }, + "RuleMetricDataSource": { + "type": "object", + "properties": { + "metricName": { + "type": "string", + "description": "the name of the metric that defines what the rule monitors." + }, + "odata.type": { + "type": "string", "enum": [ - "2014-04-01" + "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" + ] + } + }, + "required": [ + "odata.type" + ], + "description": "A rule metric data source. The discriminator value is always RuleMetricDataSource in this case." + }, + "RuleWebhookAction": { + "type": "object", + "properties": { + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" ] }, "properties": { - "type": "object", - "properties": { - "profiles": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The name of the profile." - }, - "capacity": { - "type": "object", - "properties": { - "minimum": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "integer", - "minimum": 0 - } - ], - "description": "Microsoft.Insights/autoscalesettings: The minimum number of instances for the resource." - }, - "maximum": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "integer", - "minimum": 0 - } - ], - "description": "Microsoft.Insights/autoscalesettings: The maximum number of instances for the resource. The actual maximum number may be limited by the cores that are available." - }, - "default": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "integer", - "minimum": 0 - } - ], - "description": "Microsoft.Insights/autoscalesettings: 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." - } - }, - "description": "Microsoft.Insights/autoscalesettings: The number of instances that can be used during this profile." - }, - "rules": { - "type": "array", - "items": { - "allOf": [ - { - "type": "object", - "properties": { - "metricTrigger": { - "type": "object", - "properties": { - "metricName": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The name of the metric that defines what the rule monitors." - }, - "metricResourceUri": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The resource identifier of the resource the rule monitors." - }, - "timeGrain": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/Iso8601Duration" - } - ], - "description": "Microsoft.Insights/autoscalesettings: 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. ISO 8601 duration format." - }, - "statistic": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Average", - "Min", - "Max", - "Sum" - ] - } - ], - "description": "Microsoft.Insights/autoscalesettings: How the metrics from multiple instances are combined." - }, - "timeWindow": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/Iso8601Duration" - } - ], - "description": "Microsoft.Insights/autoscalesettings: 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. ISO 8601 duration format." - }, - "timeAggregation": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Average", - "Minimum", - "Maximum", - "Last", - "Total", - "Count" - ] - } - ], - "description": "Microsoft.Insights/autoscalesettings: How the data that is collected should be combined over time. The default value is Average." - }, - "operator": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "GreaterThan", - "GreaterThanOrEqual", - "Equals", - "NotEquals", - "LessThan", - "LessThanOrEqual" - ] - } - ], - "description": "Microsoft.Insights/autoscalesettings: The operator that is used to compare the metric data and the threshold." - }, - "threshold": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "number", - "minimum": 0 - } - ], - "description": "Microsoft.Insights/autoscalesettings: The threshold of the metric that triggers the scale action." - } - }, - "description": "Microsoft.Insights/autoscalesettings: The trigger that results in a scaling action." - } - } - }, - { - "type": "object", - "properties": { - "scaleAction": { - "type": "object", - "properties": { - "direction": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "Increase", - "Decrease" - ] - } - ], - "description": "Microsoft.Insights/autoscalesettings: Whether the scaling action increases or decreases the number of instances." - }, - "type": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "enum": [ - "ChangeCount" - ] - } - ], - "description": "Microsoft.Insights/autoscalesettings: The type of action that should occur, this must be set to ChangeCount." - }, - "value": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "type": "integer", - "minimum": 1 - } - ], - "description": "Microsoft.Insights/autoscalesettings: The number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1." - }, - "cooldown": { - "oneOf": [ - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/Iso8601Duration" - } - ], - "description": "Microsoft.Insights/autoscalesettings: The amount of time to wait since the last scaling action before this action occurs. Must be between 1 week and 1 minute. ISO 8601 duration format." - } - } - } - } - } - ] - }, - "description": "Microsoft.Insights/autoscalesettings: Contains a collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified." - }, - "fixedDate": { - "type": "object", - "properties": { - "timeZone": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The time zone of the start and end times for the profile." - }, - "start": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The start time for the profile." - }, - "end": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The end time for the profile." - } - }, - "description": "Microsoft.Insights/autoscalesettings: A specific date for the profile. This element is not used if the Recurrence element is used." - }, - "recurrence": { - "type": "object", - "properties": { - "frequency": { - "enum": [ - "Week" - ], - "description": "Microsoft.Insights/autoscalesettings: How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles." - }, - "schedule": { - "type": "object", - "properties": { - "timeZone": { - "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The time zone for the hours of the profile." - }, - "days": { - "type": "array", - "items": { - "enum": [ - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ] - }, - "description": "Microsoft.Insights/autoscalesettings: A collection of days that the profile takes effect on." - }, - "hours": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 23 - }, - "description": "Microsoft.Insights/autoscalesettings: A collection of hours at which the profile takes effect at." - }, - "minutes": { - "type": "array", - "items": { - "type": "integer", - "minimum": 0, - "maximum": 59 - }, - "description": "Microsoft.Insights/autoscalesettings: A collection of minutes at which the profile takes effect at." - } - }, - "description": "Microsoft.Insights/autoscalesettings: The scheduling constraints for when the profile begins." - } - }, - "description": "Microsoft.Insights/autoscalesettings: The repeating times at which this profile begins. This element is not used if the FixedDate element is used." - } - } - } - } - ], - "description": "Microsoft.Insights/autoscalesettings: Contains a collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified." - }, - "enabled": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Microsoft.Insights/autoscalesettings: Specifies whether automatic scaling is enabled for the resource." + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} }, - "name": { + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload." + }, + "serviceUri": { + "type": "string", + "description": "the service uri to Post the notification when the alert activates or resolves." + } + }, + "required": [ + "odata.type" + ], + "description": "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case." + }, + "ThresholdRuleCondition": { + "type": "object", + "properties": { + "odata.type": { + "type": "string", + "enum": [ + "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" + ] + }, + "operator": { + "oneOf": [ + { "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The name of the autoscale setting." + "enum": [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual" + ] }, - "targetResourceUri": { + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the operator used to compare the data and the threshold." + }, + "threshold": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "the threshold value that activates the alert." + }, + "timeAggregation": { + "oneOf": [ + { "type": "string", - "minLength": 1, - "description": "Microsoft.Insights/autoscalesettings: The resource identifier of the resource that the autoscale setting should be added to." + "enum": [ + "Average", + "Minimum", + "Maximum", + "Total", + "Last" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } - } + ], + "description": "the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric." + }, + "windowSize": { + "type": "string", + "format": "duration", + "description": "the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day." } }, "required": [ - "type", - "apiVersion", - "properties", - "location" + "odata.type", + "operator", + "threshold" ], - "description": "Microsoft.Insights/autoscalesettings" + "description": "A rule condition based on a metric crossing a threshold." } } -} \ No newline at end of file +} diff --git a/schemas/2020-05-01-preview/Microsoft.Insights.json b/schemas/2020-05-01-preview/Microsoft.Insights.json index 8a9010bde5..450dd9d2a2 100644 --- a/schemas/2020-05-01-preview/Microsoft.Insights.json +++ b/schemas/2020-05-01-preview/Microsoft.Insights.json @@ -335,7 +335,7 @@ "format": "duration", "description": "Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired." }, - "OverrideQueryTimeRange": { + "overrideQueryTimeRange": { "type": "string", "format": "duration", "description": "If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods)"