diff --git a/schemas/2014-04-01-preview/deploymentTemplate.json b/schemas/2014-04-01-preview/deploymentTemplate.json index 2cdf17a50e..a235f01ce8 100644 --- a/schemas/2014-04-01-preview/deploymentTemplate.json +++ b/schemas/2014-04-01-preview/deploymentTemplate.json @@ -619,12 +619,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Sql.json#/resourceDefinitions/servers_elasticPools" }, { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Sql.json#/resourceDefinitions/servers_firewallRules" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components" }, - { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/workbooks" }, - { "$ref": "https://schema.management.azure.com/schemas/2018-06-17-preview/microsoft.insights.json#/resourceDefinitions/workbooks" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_privateEndpointConnections" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_scopedResources" }, - { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/workbooktemplates" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/webtests" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01-preview/Microsoft.Sql.json#/resourceDefinitions/managedInstances" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01-preview/Microsoft.Sql.json#/resourceDefinitions/servers" }, diff --git a/schemas/2015-01-01/deploymentTemplate.json b/schemas/2015-01-01/deploymentTemplate.json index a3b731fa41..baf14f06a3 100644 --- a/schemas/2015-01-01/deploymentTemplate.json +++ b/schemas/2015-01-01/deploymentTemplate.json @@ -719,12 +719,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Sql.json#/resourceDefinitions/servers_elasticPools" }, { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Sql.json#/resourceDefinitions/servers_firewallRules" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components" }, - { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/workbooks" }, - { "$ref": "https://schema.management.azure.com/schemas/2018-06-17-preview/microsoft.insights.json#/resourceDefinitions/workbooks" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_privateEndpointConnections" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_scopedResources" }, - { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/workbooktemplates" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/webtests" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01-preview/Microsoft.Sql.json#/resourceDefinitions/managedInstances" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01-preview/Microsoft.Sql.json#/resourceDefinitions/servers" }, diff --git a/schemas/2015-05-01/Microsoft.Insights.json b/schemas/2015-05-01/Microsoft.Insights.json index 75edd5d091..61987614bc 100644 --- a/schemas/2015-05-01/Microsoft.Insights.json +++ b/schemas/2015-05-01/Microsoft.Insights.json @@ -7,15 +7,193 @@ "components": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "kind": { + "type": "string", + "description": "The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone." + }, + "location": { + "type": "string", + "description": "Resource location" + }, "name": { "type": "string", "description": "The name of the Application Insights component resource." }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define an Application Insights component resource." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/components_Annotations_childResource" + }, + { + "$ref": "#/definitions/components_exportconfiguration_childResource" + }, + { + "$ref": "#/definitions/components_currentbillingfeatures_childResource" + }, + { + "$ref": "#/definitions/components_ProactiveDetectionConfigs_childResource" + }, + { + "$ref": "#/definitions/components_favorites_childResource" + }, + { + "$ref": "#/definitions/components_analyticsItems_childResource" + }, + { + "$ref": "#/definitions/components_myanalyticsItems_childResource" + }, + { + "$ref": "#/definitions/components_linkedStorageAccounts_childResource" + } + ] + } + }, + "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/components" ] + } + }, + "required": [ + "apiVersion", + "kind", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/components" + }, + "components_analyticsItems": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "Content": { + "type": "string", + "description": "The content of this item" + }, + "Id": { + "type": "string", + "description": "Internally assigned unique id of the item definition." + }, + "Name": { + "type": "string", + "description": "The user-defined name of the item." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/item$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "Properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentAnalyticsItemProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A set of properties that can be defined in the context of a specific item type. Each type may have its own properties." + }, + "Scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "shared", + "user" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component." + }, + "Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "query", + "function", + "folder", + "recent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating the type of the Analytics item." + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/components/analyticsItems" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "microsoft.insights/components/analyticsItems" + }, + "components_Annotations": { + "type": "object", + "properties": { + "AnnotationName": { + "type": "string", + "description": "Name of annotation" }, "apiVersion": { "type": "string", @@ -23,15 +201,66 @@ "2015-05-01" ] }, - "location": { + "Category": { "type": "string", - "description": "Resource location" + "description": "Category of annotation, free form" }, - "tags": { + "EventTime": { + "type": "string", + "description": "Time when event occurred" + }, + "Id": { + "type": "string", + "description": "Unique Id for annotation" + }, + "name": { "oneOf": [ { - "type": "object", - "additionalProperties": { + "type": "string", + "pattern": "^.*/Annotations$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "Properties": { + "type": "string", + "description": "Serialized JSON object for detailed properties" + }, + "RelatedAnnotation": { + "type": "string", + "default": "null", + "description": "Related parent annotation if any" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/components/Annotations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/Annotations" + }, + "components_currentbillingfeatures": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "CurrentBillingFeatures": { + "oneOf": [ + { + "type": "array", + "items": { "type": "string" } }, @@ -39,108 +268,1177 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags" - }, - "kind": { - "type": "string", - "description": "The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone." + "description": "Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'." }, - "properties": { + "DataVolumeCap": { "oneOf": [ { - "$ref": "#/definitions/ApplicationInsightsComponentProperties" + "$ref": "#/definitions/ApplicationInsightsComponentDataVolumeCap" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Properties that define an Application Insights component resource." + "description": "An Application Insights component daily data volume cap" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/currentbillingfeatures$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/components/currentbillingfeatures" + ] } }, "required": [ - "name", - "type", "apiVersion", - "location", - "kind", - "properties" + "name", + "type" ], - "description": "Microsoft.Insights/components" + "description": "Microsoft.Insights/components/currentbillingfeatures" }, - "webtests": { + "components_exportconfiguration": { "type": "object", "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "DestinationAccountId": { + "type": "string", + "description": "The name of destination storage account." + }, + "DestinationAddress": { + "type": "string", + "description": "The SAS URL for the destination storage container. It must grant write permission." + }, + "DestinationStorageLocationId": { + "type": "string", + "description": "The location ID of the destination storage container." + }, + "DestinationStorageSubscriptionId": { + "type": "string", + "description": "The subscription ID of the destination storage container." + }, + "DestinationType": { + "type": "string", + "description": "The Continuous Export destination type. This has to be 'Blob'." + }, + "IsEnabled": { + "type": "string", + "description": "Set to 'true' to create a Continuous Export configuration as enabled, otherwise set it to 'false'." + }, "name": { "type": "string", - "description": "The name of the Application Insights webtest resource." + "description": "The Continuous Export configuration ID. This is unique within a Application Insights component." + }, + "NotificationQueueEnabled": { + "type": "string", + "description": "Deprecated" + }, + "NotificationQueueUri": { + "type": "string", + "description": "Deprecated" + }, + "RecordTypes": { + "type": "string", + "description": "The document types to be exported, as comma separated values. Allowed values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'." }, "type": { "type": "string", "enum": [ - "Microsoft.Insights/webtests" + "Microsoft.Insights/components/exportconfiguration" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/exportconfiguration" + }, + "components_favorites": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" ] }, + "Category": { + "type": "string", + "description": "Favorite category, as defined by the user at creation time." + }, + "Config": { + "type": "string", + "description": "Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON" + }, + "FavoriteType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "shared", + "user" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component." + }, + "IsGeneratedFromTemplate": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag denoting wether or not this favorite was generated from a template." + }, + "Name": { + "type": "string", + "description": "The user-defined name of the favorite." + }, + "name": { + "type": "string", + "description": "The Id of a specific favorite defined in the Application Insights component" + }, + "SourceType": { + "type": "string", + "description": "The source of the favorite definition." + }, + "Tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A list of 0 or more tags that are associated with this favorite definition" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/components/favorites" + ] + }, + "Version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search." + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/favorites" + }, + "components_linkedStorageAccounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/ServiceProfiler$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the Application Insights component data source for the linked storage account." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LinkedStorageAccountsProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Application Insights component linked storage account" + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/components/linkedStorageAccounts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/components/linkedStorageAccounts" + }, + "components_myanalyticsItems": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "Content": { + "type": "string", + "description": "The content of this item" + }, + "Id": { + "type": "string", + "description": "Internally assigned unique id of the item definition." + }, + "Name": { + "type": "string", + "description": "The user-defined name of the item." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/item$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "Properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentAnalyticsItemProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A set of properties that can be defined in the context of a specific item type. Each type may have its own properties." + }, + "Scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "shared", + "user" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component." + }, + "Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "query", + "function", + "folder", + "recent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating the type of the Analytics item." + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/components/myanalyticsItems" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "microsoft.insights/components/myanalyticsItems" + }, + "components_ProactiveDetectionConfigs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "CustomEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Custom email addresses for this rule notifications" + }, + "Enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag that indicates whether this rule is enabled by the user" + }, + "LastUpdatedTime": { + "type": "string", + "description": "The last time this rule was updated" + }, + "Name": { + "type": "string", + "description": "The rule name" + }, + "name": { + "type": "string", + "description": "The ProactiveDetection configuration ID. This is unique within a Application Insights component." + }, + "RuleDefinitions": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Static definitions of the ProactiveDetection configuration rule (same values for all components)." + }, + "SendEmailsToSubscriptionOwners": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag that indicated whether notifications on this rule should be sent to subscription owners" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/components/ProactiveDetectionConfigs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" + }, + "webtests": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ping", + "multistep" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of web test that this web test watches. Choices are ping and multistep." + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the Application Insights webtest resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Metadata describing a web test for an Azure 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/webtests" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/webtests" + }, + "workbooks": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "user", + "shared" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of workbook. Choices are user and shared." + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the Application Insights component resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkbookProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that contain a workbook." + }, + "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/workbooks" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/workbooks" + } + }, + "definitions": { + "ApplicationInsightsComponentAnalyticsItemProperties": { + "type": "object", + "properties": { + "functionAlias": { + "type": "string", + "description": "A function alias, used when the type of the item is Function" + } + }, + "description": "A set of properties that can be defined in the context of a specific item type. Each type may have its own properties." + }, + "ApplicationInsightsComponentDataVolumeCap": { + "type": "object", + "properties": { + "Cap": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Daily data volume cap in GB." + }, + "StopSendNotificationWhenHitCap": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Do not send a notification email when the daily data volume cap is met." + }, + "StopSendNotificationWhenHitThreshold": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reserved, not used for now." + }, + "WarningThreshold": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reserved, not used for now." + } + }, + "description": "An Application Insights component daily data volume cap" + }, + "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions": { + "type": "object", + "properties": { + "Description": { + "type": "string", + "description": "The rule description" + }, + "DisplayName": { + "type": "string", + "description": "The rule name as it is displayed in UI" + }, + "HelpUrl": { + "type": "string", + "description": "URL which displays additional info about the proactive detection rule" + }, + "IsEnabledByDefault": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether the rule is enabled by default" + }, + "IsHidden": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether the rule is hidden (from the UI)" + }, + "IsInPreview": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether the rule is in preview" + }, + "Name": { + "type": "string", + "description": "The rule name" + }, + "SupportsEmailNotifications": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether email notifications are supported for detections for this rule" + } + }, + "description": "Static definitions of the ProactiveDetection configuration rule (same values for all components)." + }, + "ApplicationInsightsComponentProperties": { + "type": "object", + "properties": { + "Application_Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "web", + "other" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Type of application being monitored." + }, + "DisableIpMasking": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Disable IP masking." + }, + "Flow_Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Bluefield" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API." + }, + "HockeyAppId": { + "type": "string", + "description": "The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp." + }, + "ImmediatePurgeDataOn30Days": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Purge data immediately after 30 days." + }, + "IngestionMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ApplicationInsights", + "ApplicationInsightsWithDiagnosticSettings", + "LogAnalytics" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates the flow of the ingestion." + }, + "publicNetworkAccessForIngestion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Application Insights ingestion." + }, + "publicNetworkAccessForQuery": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Application Insights query." + }, + "Request_Source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "rest" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'." + }, + "RetentionInDays": { + "oneOf": [ + { + "type": "integer", + "default": "90" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Retention period in days." + }, + "SamplingPercentage": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry." + } + }, + "required": [ + "Application_Type" + ], + "description": "Properties that define an Application Insights component resource." + }, + "components_analyticsItems_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "Content": { + "type": "string", + "description": "The content of this item" + }, + "Id": { + "type": "string", + "description": "Internally assigned unique id of the item definition." + }, + "Name": { + "type": "string", + "description": "The user-defined name of the item." + }, + "name": { + "type": "string", + "enum": [ + "item" + ] + }, + "Properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentAnalyticsItemProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A set of properties that can be defined in the context of a specific item type. Each type may have its own properties." + }, + "Scope": { + "oneOf": [ + { + "type": "string", + "enum": [ + "shared", + "user" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component." + }, + "Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "query", + "function", + "folder", + "recent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating the type of the Analytics item." + }, + "type": { + "type": "string", + "enum": [ + "analyticsItems" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "microsoft.insights/components/analyticsItems" + }, + "components_Annotations_childResource": { + "type": "object", + "properties": { + "AnnotationName": { + "type": "string", + "description": "Name of annotation" + }, + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "Category": { + "type": "string", + "description": "Category of annotation, free form" + }, + "EventTime": { + "type": "string", + "description": "Time when event occurred" + }, + "Id": { + "type": "string", + "description": "Unique Id for annotation" + }, + "name": { + "type": "string", + "enum": [ + "Annotations" + ] + }, + "Properties": { + "type": "string", + "description": "Serialized JSON object for detailed properties" + }, + "RelatedAnnotation": { + "type": "string", + "default": "null", + "description": "Related parent annotation if any" + }, + "type": { + "type": "string", + "enum": [ + "Annotations" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/Annotations" + }, + "components_currentbillingfeatures_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "CurrentBillingFeatures": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Current enabled pricing plan. When the component is in the Enterprise plan, this will list both 'Basic' and 'Application Insights Enterprise'." + }, + "DataVolumeCap": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentDataVolumeCap" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Application Insights component daily data volume cap" + }, + "name": { + "type": "string", + "enum": [ + "currentbillingfeatures" + ] + }, + "type": { + "type": "string", + "enum": [ + "currentbillingfeatures" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/currentbillingfeatures" + }, + "components_exportconfiguration_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "DestinationAccountId": { + "type": "string", + "description": "The name of destination storage account." + }, + "DestinationAddress": { + "type": "string", + "description": "The SAS URL for the destination storage container. It must grant write permission." + }, + "DestinationStorageLocationId": { + "type": "string", + "description": "The location ID of the destination storage container." + }, + "DestinationStorageSubscriptionId": { + "type": "string", + "description": "The subscription ID of the destination storage container." + }, + "DestinationType": { + "type": "string", + "description": "The Continuous Export destination type. This has to be 'Blob'." + }, + "IsEnabled": { + "type": "string", + "description": "Set to 'true' to create a Continuous Export configuration as enabled, otherwise set it to 'false'." + }, + "name": { + "type": "string", + "description": "The Continuous Export configuration ID. This is unique within a Application Insights component." + }, + "NotificationQueueEnabled": { + "type": "string", + "description": "Deprecated" + }, + "NotificationQueueUri": { + "type": "string", + "description": "Deprecated" + }, + "RecordTypes": { + "type": "string", + "description": "The document types to be exported, as comma separated values. Allowed values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'." + }, + "type": { + "type": "string", + "enum": [ + "exportconfiguration" + ] + } + }, + "required": [ + "apiVersion", + "name", + "type" + ], + "description": "Microsoft.Insights/components/exportconfiguration" + }, + "components_favorites_childResource": { + "type": "object", + "properties": { "apiVersion": { "type": "string", "enum": [ "2015-05-01" ] }, - "location": { + "Category": { "type": "string", - "description": "Resource location" + "description": "Favorite category, as defined by the user at creation time." }, - "tags": { + "Config": { + "type": "string", + "description": "Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON" + }, + "FavoriteType": { "oneOf": [ { - "type": "object", - "additionalProperties": { - "type": "string" - } + "type": "string", + "enum": [ + "shared", + "user" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags" + "description": "Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component." }, - "kind": { + "IsGeneratedFromTemplate": { "oneOf": [ { - "type": "string", - "enum": [ - "ping", - "multistep" - ] + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The kind of web test that this web test watches. Choices are ping and multistep." + "description": "Flag denoting wether or not this favorite was generated from a template." }, - "properties": { + "Name": { + "type": "string", + "description": "The user-defined name of the favorite." + }, + "name": { + "type": "string", + "description": "The Id of a specific favorite defined in the Application Insights component" + }, + "SourceType": { + "type": "string", + "description": "The source of the favorite definition." + }, + "Tags": { "oneOf": [ { - "$ref": "#/definitions/WebTestProperties" + "type": "array", + "items": { + "type": "string" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Metadata describing a web test for an Azure resource." + "description": "A list of 0 or more tags that are associated with this favorite definition" + }, + "type": { + "type": "string", + "enum": [ + "favorites" + ] + }, + "Version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search." } }, "required": [ - "name", - "type", "apiVersion", - "location", - "properties" + "name", + "type" ], - "description": "Microsoft.Insights/webtests" + "description": "Microsoft.Insights/components/favorites" }, - "workbooks": { + "components_linkedStorageAccounts_childResource": { "type": "object", "properties": { "apiVersion": { @@ -149,138 +1447,214 @@ "2015-05-01" ] }, - "kind": { + "name": { + "type": "string", + "enum": [ + "ServiceProfiler" + ], + "description": "The type of the Application Insights component data source for the linked storage account." + }, + "properties": { "oneOf": [ { - "type": "string", - "enum": [ - "user", - "shared" - ] + "$ref": "#/definitions/LinkedStorageAccountsProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "The kind of workbook. Choices are user and shared." + "description": "An Application Insights component linked storage account" }, - "location": { + "type": { "type": "string", - "description": "Resource location" + "enum": [ + "linkedStorageAccounts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/components/linkedStorageAccounts" + }, + "components_myanalyticsItems_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "Content": { + "type": "string", + "description": "The content of this item" + }, + "Id": { + "type": "string", + "description": "Internally assigned unique id of the item definition." + }, + "Name": { + "type": "string", + "description": "The user-defined name of the item." }, "name": { "type": "string", - "description": "The name of the Application Insights component resource." + "enum": [ + "item" + ] }, - "properties": { + "Properties": { "oneOf": [ { - "$ref": "#/definitions/WorkbookProperties" + "$ref": "#/definitions/ApplicationInsightsComponentAnalyticsItemProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Properties that contain a workbook." + "description": "A set of properties that can be defined in the context of a specific item type. Each type may have its own properties." }, - "tags": { + "Scope": { "oneOf": [ { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "properties": {} + "type": "string", + "enum": [ + "shared", + "user" + ] }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags" + "description": "Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component." + }, + "Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "query", + "function", + "folder", + "recent" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enum indicating the type of the Analytics item." }, "type": { "type": "string", "enum": [ - "microsoft.insights/workbooks" + "myanalyticsItems" ] } }, "required": [ "apiVersion", "name", - "properties", "type" ], - "description": "microsoft.insights/workbooks" - } - }, - "definitions": { - "ApplicationInsightsComponentProperties": { + "description": "microsoft.insights/components/myanalyticsItems" + }, + "components_ProactiveDetectionConfigs_childResource": { "type": "object", "properties": { - "Application_Type": { + "apiVersion": { + "type": "string", + "enum": [ + "2015-05-01" + ] + }, + "CustomEmails": { "oneOf": [ { - "type": "string", - "enum": [ - "web", - "other" - ] + "type": "array", + "items": { + "type": "string" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Type of application being monitored." + "description": "Custom email addresses for this rule notifications" }, - "Flow_Type": { + "Enabled": { "oneOf": [ { - "type": "string", - "enum": [ - "Bluefield" - ] + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API." + "description": "A flag that indicates whether this rule is enabled by the user" }, - "Request_Source": { + "LastUpdatedTime": { + "type": "string", + "description": "The last time this rule was updated" + }, + "Name": { + "type": "string", + "description": "The rule name" + }, + "name": { + "type": "string", + "description": "The ProactiveDetection configuration ID. This is unique within a Application Insights component." + }, + "RuleDefinitions": { "oneOf": [ { - "type": "string", - "enum": [ - "rest" - ] + "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'." + "description": "Static definitions of the ProactiveDetection configuration rule (same values for all components)." }, - "HockeyAppId": { - "type": "string", - "description": "The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp." - }, - "SamplingPercentage": { + "SendEmailsToSubscriptionOwners": { "oneOf": [ { - "type": "number" + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry." + "description": "A flag that indicated whether notifications on this rule should be sent to subscription owners" + }, + "type": { + "type": "string", + "enum": [ + "ProactiveDetectionConfigs" + ] } }, "required": [ - "Application_Type" + "apiVersion", + "name", + "type" ], - "description": "Properties that define an Application Insights component resource." + "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" + }, + "LinkedStorageAccountsProperties": { + "type": "object", + "properties": { + "linkedStorageAccount": { + "type": "string", + "description": "Linked storage account resource ID" + } + }, + "description": "An Application Insights component linked storage account" }, "WebTestGeolocation": { "type": "object", @@ -295,13 +1669,16 @@ "WebTestProperties": { "type": "object", "properties": { - "SyntheticMonitorId": { - "type": "string", - "description": "Unique ID of this WebTest. This is typically the same value as the Name field." - }, - "Name": { - "type": "string", - "description": "User defined name if this WebTest." + "Configuration": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesConfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An XML configuration specification for a WebTest." }, "Description": { "type": "string", @@ -330,18 +1707,6 @@ ], "description": "Interval in seconds between test runs for this WebTest. Default value is 300." }, - "Timeout": { - "oneOf": [ - { - "type": "integer", - "default": "30" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Seconds until this WebTest will timeout and fail. Default value is 30." - }, "Kind": { "oneOf": [ { @@ -357,48 +1722,57 @@ ], "description": "The kind of web test this is, valid choices are ping and multistep." }, - "RetryEnabled": { + "Locations": { "oneOf": [ { - "type": "boolean" + "type": "array", + "items": { + "$ref": "#/definitions/WebTestGeolocation" + } }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Allow for retries should this WebTest fail." + "description": "A list of where to physically run the tests from to give global coverage for accessibility of your application." }, - "Locations": { + "Name": { + "type": "string", + "description": "User defined name if this WebTest." + }, + "RetryEnabled": { "oneOf": [ { - "type": "array", - "items": { - "$ref": "#/definitions/WebTestGeolocation" - } + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "A list of where to physically run the tests from to give global coverage for accessibility of your application." + "description": "Allow for retries should this WebTest fail." }, - "Configuration": { + "SyntheticMonitorId": { + "type": "string", + "description": "Unique ID of this WebTest. This is typically the same value as the Name field." + }, + "Timeout": { "oneOf": [ { - "$ref": "#/definitions/WebTestPropertiesConfiguration" + "type": "integer", + "default": "30" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "An XML configuration specification for a WebTest." + "description": "Seconds until this WebTest will timeout and fail. Default value is 30." } }, "required": [ - "SyntheticMonitorId", - "Name", "Kind", - "Locations" + "Locations", + "Name", + "SyntheticMonitorId" ], "description": "Metadata describing a web test for an Azure resource." }, diff --git a/schemas/2017-10-01/microsoft.insights.json b/schemas/2017-10-01/microsoft.insights.json new file mode 100644 index 0000000000..357d53bbb0 --- /dev/null +++ b/schemas/2017-10-01/microsoft.insights.json @@ -0,0 +1,110 @@ +{ + "id": "https://schema.management.azure.com/schemas/2017-10-01/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "components_pricingPlans": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2017-10-01" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/current$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PricingPlanProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Application Insights component daily data volume cap" + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/components/pricingPlans" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/components/pricingPlans" + } + }, + "definitions": { + "PricingPlanProperties": { + "type": "object", + "properties": { + "cap": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Daily data volume cap in GB." + }, + "planType": { + "type": "string", + "description": "Pricing Plan Type Name." + }, + "stopSendNotificationWhenHitCap": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Do not send a notification email when the daily data volume cap is met." + }, + "stopSendNotificationWhenHitThreshold": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reserved, not used for now." + }, + "warningThreshold": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Reserved, not used for now." + } + }, + "description": "An Application Insights component daily data volume cap" + } + } +} \ No newline at end of file diff --git a/schemas/2018-05-01-preview/Microsoft.Insights.json b/schemas/2018-05-01-preview/Microsoft.Insights.json index b08d601c1a..276e7b0669 100644 --- a/schemas/2018-05-01-preview/Microsoft.Insights.json +++ b/schemas/2018-05-01-preview/Microsoft.Insights.json @@ -4,50 +4,6 @@ "title": "Microsoft.Insights", "description": "Microsoft Insights Resource Types", "resourceDefinitions": { - "ProactiveDetectionConfigs": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the proactive detection configuration rule." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Insights/ProactiveDetectionConfigs" - ] - }, - "apiVersion": { - "type": "string", - "enum": [ - "2018-05-01-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ProactiveDetectionConfigurationRule" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "The proactive detection configuration rule properties of the resource." - } - }, - "required": [ - "name", - "type", - "apiVersion", - "location", - "properties" - ], - "description": "microsoft.insights/components/ProactiveDetectionConfigs" - }, "components": { "type": "object", "properties": { @@ -80,6 +36,16 @@ ], "description": "Properties that define an Application Insights component resource." }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/components_ProactiveDetectionConfigs_childResource" + } + ] + } + }, "tags": { "oneOf": [ { @@ -111,17 +77,121 @@ "type" ], "description": "Microsoft.Insights/components" + }, + "components_ProactiveDetectionConfigs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The ProactiveDetection configuration ID. This is unique within a Application Insights component." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define a ProactiveDetection configuration." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/components/ProactiveDetectionConfigs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" } }, "definitions": { - "ProactiveDetectionConfigurationRule": { + "ApplicationInsightsComponentProactiveDetectionConfigurationProperties": { "type": "object", "properties": { - "name": { + "CustomEmails": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Custom email addresses for this rule notifications" + }, + "Enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag that indicates whether this rule is enabled by the user" + }, + "RuleDefinitions": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitions" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Static definitions of the ProactiveDetection configuration rule (same values for all components)." + }, + "SendEmailsToSubscriptionOwners": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag that indicated whether notifications on this rule should be sent to subscription owners" + } + }, + "description": "Properties that define a ProactiveDetection configuration." + }, + "ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitions": { + "type": "object", + "properties": { + "Description": { "type": "string", - "description": "the name of the proactive detection configuration rule." + "description": "The rule description" }, - "enabled": { + "DisplayName": { + "type": "string", + "description": "The rule name as it is displayed in UI" + }, + "HelpUrl": { + "type": "string", + "description": "URL which displays additional info about the proactive detection rule" + }, + "IsEnabledByDefault": { "oneOf": [ { "type": "boolean" @@ -130,9 +200,9 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "the flag that indicates whether the proactive detection configuration rule is enabled." + "description": "A flag indicating whether the rule is enabled by default" }, - "sendEmailsToSubscriptionOwners": { + "IsHidden": { "oneOf": [ { "type": "boolean" @@ -141,28 +211,36 @@ "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "the flag that indicates whether the proactive detections should be sent to subscription owners." + "description": "A flag indicating whether the rule is hidden (from the UI)" }, - "customEmails": { + "IsInPreview": { "oneOf": [ { - "type": "array", - "items": { - "type": "string" - } + "type": "boolean" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "An array of emails to send the proactive detections to." + "description": "A flag indicating whether the rule is in preview" + }, + "Name": { + "type": "string", + "description": "The rule name" + }, + "SupportsEmailNotifications": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A flag indicating whether email notifications are supported for detections for this rule" } }, - "required": [ - "name", - "enabled" - ], - "description": "A proactive detection configuration rule." + "description": "Static definitions of the ProactiveDetection configuration rule (same values for all components)." }, "ApplicationInsightsComponentProperties": { "type": "object", @@ -222,12 +300,28 @@ ], "description": "Purge data immediately after 30 days." }, + "IngestionMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ApplicationInsights", + "ApplicationInsightsWithDiagnosticSettings", + "LogAnalytics" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates the flow of the ingestion." + }, "publicNetworkAccessForIngestion": { "oneOf": [ { "type": "string", "enum": [ - "enabled", + "Enabled", "Disabled" ] }, @@ -242,7 +336,7 @@ { "type": "string", "enum": [ - "enabled", + "Enabled", "Disabled" ] }, @@ -294,6 +388,49 @@ "Application_Type" ], "description": "Properties that define an Application Insights component resource." + }, + "components_ProactiveDetectionConfigs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-05-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The ProactiveDetection configuration ID. This is unique within a Application Insights component." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define a ProactiveDetection configuration." + }, + "type": { + "type": "string", + "enum": [ + "ProactiveDetectionConfigs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" } } } \ No newline at end of file diff --git a/schemas/2018-06-17-preview/microsoft.insights.json b/schemas/2018-06-17-preview/microsoft.insights.json index 582371c466..5f98ab93a2 100644 --- a/schemas/2018-06-17-preview/microsoft.insights.json +++ b/schemas/2018-06-17-preview/microsoft.insights.json @@ -127,4 +127,4 @@ "description": "Properties that contain a workbook." } } -} +} \ No newline at end of file diff --git a/schemas/2019-04-01/deploymentTemplate.json b/schemas/2019-04-01/deploymentTemplate.json index ac810a4170..195898e904 100644 --- a/schemas/2019-04-01/deploymentTemplate.json +++ b/schemas/2019-04-01/deploymentTemplate.json @@ -154,11 +154,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-06-14/Microsoft.Kusto.json#/resourceDefinitions/clusters_databases_principalassignments" }, { "$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/components" }, - { "$ref": "https://schema.management.azure.com/schemas/2018-06-17-preview/microsoft.insights.json#/resourceDefinitions/workbooks" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_privateEndpointConnections" }, { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/privateLinkScopes_scopedResources" }, - { "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/workbooktemplates" }, { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/autoscalesettings" }, { "$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/webtests" }, { "$ref": "https://schema.management.azure.com/schemas/2015-11-01/Microsoft.Network.json#/resourceDefinitions/trafficManagerProfiles" }, @@ -336,7 +334,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.Insights.json#/resourceDefinitions/actionGroups" }, { "$ref": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.Insights.json#/resourceDefinitions/activityLogAlerts" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components" }, - { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/workbooks" }, { "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/webtests" }, { "$ref": "https://schema.management.azure.com/schemas/2017-08-01/Microsoft.Network.json#/resourceDefinitions/publicIPAddresses" }, { "$ref": "https://schema.management.azure.com/schemas/2017-08-01/Microsoft.Network.json#/resourceDefinitions/virtualNetworks" }, diff --git a/schemas/2019-09-01-preview/Microsoft.Insights.json b/schemas/2019-09-01-preview/Microsoft.Insights.json new file mode 100644 index 0000000000..6f951e2e5c --- /dev/null +++ b/schemas/2019-09-01-preview/Microsoft.Insights.json @@ -0,0 +1,266 @@ +{ + "id": "https://schema.management.azure.com/schemas/2019-09-01-preview/Microsoft.Insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", + "resourceDefinitions": { + "queryPacks": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-09-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the Log Analytics QueryPack resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LogAnalyticsQueryPackProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define a Log Analytics QueryPack resource." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/queryPacks_queries_childResource" + } + ] + } + }, + "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/queryPacks" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/queryPacks" + }, + "queryPacks_queries": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The id of a specific query defined in the Log Analytics QueryPack" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LogAnalyticsQueryPackQueryProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define an Log Analytics QueryPack-Query resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Insights/queryPacks/queries" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/queryPacks/queries" + } + }, + "definitions": { + "LogAnalyticsQueryPackProperties": { + "type": "object", + "properties": {}, + "description": "Properties that define a Log Analytics QueryPack resource." + }, + "LogAnalyticsQueryPackQueryProperties": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "Body of the query." + }, + "description": { + "type": "string", + "description": "Description of the query." + }, + "displayName": { + "type": "string", + "description": "Unique display name for your query within the Query Pack." + }, + "properties": { + "type": "object", + "properties": {}, + "description": "Additional properties that can be set for the query." + }, + "related": { + "oneOf": [ + { + "$ref": "#/definitions/LogAnalyticsQueryPackQueryPropertiesRelated" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The related metadata items for the function." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tags associated with the query." + } + }, + "required": [ + "body", + "displayName" + ], + "description": "Properties that define an Log Analytics QueryPack-Query resource." + }, + "LogAnalyticsQueryPackQueryPropertiesRelated": { + "type": "object", + "properties": { + "categories": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The related categories for the function." + }, + "resourceTypes": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The related resource types for the function." + }, + "solutions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The related Log Analytics solutions for the function." + } + }, + "description": "The related metadata items for the function." + }, + "queryPacks_queries_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2019-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "The id of a specific query defined in the Log Analytics QueryPack" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LogAnalyticsQueryPackQueryProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define an Log Analytics QueryPack-Query resource." + }, + "type": { + "type": "string", + "enum": [ + "queries" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/queryPacks/queries" + } + } +} \ No newline at end of file diff --git a/schemas/2019-10-17-preview/microsoft.insights.json b/schemas/2019-10-17-preview/microsoft.insights.json index df3aa36f87..7c9a1094b8 100644 --- a/schemas/2019-10-17-preview/microsoft.insights.json +++ b/schemas/2019-10-17-preview/microsoft.insights.json @@ -4,156 +4,6 @@ "title": "microsoft.insights", "description": "microsoft insights Resource Types", "resourceDefinitions": { - "privateLinkScopes": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "name": { - "type": "string", - "description": "The name of the Azure Monitor PrivateLinkScope resource." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/AzureMonitorPrivateLinkScopeProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties that define a Azure Monitor PrivateLinkScope resource." - }, - "resources": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/privateLinkScopes_privateEndpointConnections_childResource" - }, - { - "$ref": "#/definitions/privateLinkScopes_scopedResources_childResource" - } - ] - } - }, - "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/privateLinkScopes" - ] - } - }, - "required": [ - "apiVersion", - "location", - "name", - "properties", - "type" - ], - "description": "microsoft.insights/privateLinkScopes" - }, - "privateLinkScopes_privateEndpointConnections": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a private endpoint connection." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Insights/privateLinkScopes/privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections" - }, - "privateLinkScopes_scopedResources": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the scoped resource object." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ScopedResourceProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a private link scoped resource." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Insights/privateLinkScopes/scopedResources" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Insights/privateLinkScopes/scopedResources" - }, "workbooktemplates": { "type": "object", "properties": { @@ -215,155 +65,6 @@ } }, "definitions": { - "AzureMonitorPrivateLinkScopeProperties": { - "type": "object", - "properties": {}, - "description": "Properties that define a Azure Monitor PrivateLinkScope resource." - }, - "PrivateEndpointConnectionProperties": { - "type": "object", - "properties": { - "privateEndpoint": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointProperty" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Private endpoint which the connection belongs to." - }, - "privateLinkServiceConnectionState": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "State of the private endpoint connection." - } - }, - "description": "Properties of a private endpoint connection." - }, - "PrivateEndpointProperty": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Resource id of the private endpoint." - } - }, - "description": "Private endpoint which the connection belongs to." - }, - "privateLinkScopes_privateEndpointConnections_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the private endpoint connection." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/PrivateEndpointConnectionProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a private endpoint connection." - }, - "type": { - "type": "string", - "enum": [ - "privateEndpointConnections" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections" - }, - "privateLinkScopes_scopedResources_childResource": { - "type": "object", - "properties": { - "apiVersion": { - "type": "string", - "enum": [ - "2019-10-17-preview" - ] - }, - "name": { - "type": "string", - "description": "The name of the scoped resource object." - }, - "properties": { - "oneOf": [ - { - "$ref": "#/definitions/ScopedResourceProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Properties of a private link scoped resource." - }, - "type": { - "type": "string", - "enum": [ - "scopedResources" - ] - } - }, - "required": [ - "apiVersion", - "name", - "properties", - "type" - ], - "description": "Microsoft.Insights/privateLinkScopes/scopedResources" - }, - "PrivateLinkServiceConnectionStateProperty": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "The private link service connection description." - }, - "status": { - "type": "string", - "description": "The private link service connection status." - } - }, - "required": [ - "description", - "status" - ], - "description": "State of the private endpoint connection." - }, - "ScopedResourceProperties": { - "type": "object", - "properties": { - "linkedResourceId": { - "type": "string", - "description": "The resource id of the scoped Azure monitor resource." - } - }, - "description": "Properties of a private link scoped resource." - }, "WorkbookTemplateGallery": { "type": "object", "properties": { @@ -485,4 +186,4 @@ "description": "Properties that contain a workbook template." } } -} +} \ No newline at end of file diff --git a/schemas/2020-02-02-preview/Microsoft.Insights.json b/schemas/2020-02-02-preview/Microsoft.Insights.json new file mode 100644 index 0000000000..b3f453807a --- /dev/null +++ b/schemas/2020-02-02-preview/Microsoft.Insights.json @@ -0,0 +1,214 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-02-02-preview/Microsoft.Insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Insights", + "description": "Microsoft Insights Resource Types", + "resourceDefinitions": { + "components": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-02-02-preview" + ] + }, + "kind": { + "type": "string", + "description": "The kind of application that this component refers to, used to customize UI. This value is a freeform string, values should typically be one of the following: web, ios, other, store, java, phone." + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "name": { + "type": "string", + "description": "The name of the Application Insights component resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApplicationInsightsComponentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties that define an Application Insights component 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/components" + ] + } + }, + "required": [ + "apiVersion", + "kind", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Insights/components" + } + }, + "definitions": { + "ApplicationInsightsComponentProperties": { + "type": "object", + "properties": { + "Application_Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "web", + "other" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Type of application being monitored." + }, + "DisableIpMasking": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Disable IP masking." + }, + "Flow_Type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Bluefield" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Used by the Application Insights system to determine what kind of flow this component was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API." + }, + "HockeyAppId": { + "type": "string", + "description": "The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp." + }, + "ImmediatePurgeDataOn30Days": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Purge data immediately after 30 days." + }, + "IngestionMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ApplicationInsights", + "ApplicationInsightsWithDiagnosticSettings", + "LogAnalytics" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates the flow of the ingestion." + }, + "publicNetworkAccessForIngestion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Application Insights ingestion." + }, + "publicNetworkAccessForQuery": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Application Insights query." + }, + "Request_Source": { + "oneOf": [ + { + "type": "string", + "enum": [ + "rest" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'." + }, + "SamplingPercentage": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry." + }, + "WorkspaceResourceId": { + "type": "string", + "description": "ResourceId of the log analytics workspace which the data will be ingested to." + } + }, + "required": [ + "Application_Type", + "WorkspaceResourceId" + ], + "description": "Properties that define an Application Insights component resource." + } + } +} \ No newline at end of file diff --git a/schemas/2020-03-01-preview/microsoft.insights.json b/schemas/2020-03-01-preview/microsoft.insights.json new file mode 100644 index 0000000000..46d8a7eb7f --- /dev/null +++ b/schemas/2020-03-01-preview/microsoft.insights.json @@ -0,0 +1,67 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-03-01-preview/microsoft.insights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "microsoft.insights", + "description": "microsoft insights Resource Types", + "resourceDefinitions": { + "components_linkedStorageAccounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-03-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^.*/ServiceProfiler$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the Application Insights component data source for the linked storage account." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/LinkedStorageAccountsProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An Application Insights component linked storage account" + }, + "type": { + "type": "string", + "enum": [ + "microsoft.insights/components/linkedStorageAccounts" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "microsoft.insights/components/linkedStorageAccounts" + } + }, + "definitions": { + "LinkedStorageAccountsProperties": { + "type": "object", + "properties": { + "linkedStorageAccount": { + "type": "string", + "description": "Linked storage account resource ID" + } + }, + "description": "An Application Insights component linked storage account" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index a18ff59272..0ef318c909 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -3217,6 +3217,66 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-08-01/Microsoft.ImportExport.json#/resourceDefinitions/jobs" }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_analyticsItems" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_Annotations" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_currentbillingfeatures" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_exportconfiguration" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_favorites" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_linkedStorageAccounts" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_myanalyticsItems" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/components_ProactiveDetectionConfigs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/webtests" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-05-01/Microsoft.Insights.json#/resourceDefinitions/workbooks" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2017-10-01/microsoft.insights.json#/resourceDefinitions/components_pricingPlans" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.json#/resourceDefinitions/components" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.json#/resourceDefinitions/components_ProactiveDetectionConfigs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-06-17-preview/microsoft.insights.json#/resourceDefinitions/workbooks" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2019-09-01-preview/Microsoft.Insights.json#/resourceDefinitions/queryPacks" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2019-09-01-preview/Microsoft.Insights.json#/resourceDefinitions/queryPacks_queries" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2019-10-17-preview/microsoft.insights.json#/resourceDefinitions/workbooktemplates" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-02-02-preview/Microsoft.Insights.json#/resourceDefinitions/components" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2020-03-01-preview/microsoft.insights.json#/resourceDefinitions/components_linkedStorageAccounts" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-09-01/Microsoft.IotCentral.json#/resourceDefinitions/IoTApps" },