From f21c476ebd94559ba4f4da311bca2f3332f22861 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Sat, 21 Aug 2021 05:24:54 +0000 Subject: [PATCH] CodeGen from PR 15636 in Azure/azure-rest-api-specs Merge b3195d6cbc33e302817d5a18c1636a636606d3c9 into ef8f43c327e6e4419b0d0e41747f4eadd58e232e --- .../Microsoft.Insights.Application.json | 389 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 392 insertions(+) diff --git a/schemas/2018-05-01-preview/Microsoft.Insights.Application.json b/schemas/2018-05-01-preview/Microsoft.Insights.Application.json index 4939fb282a..269e7efc3a 100644 --- a/schemas/2018-05-01-preview/Microsoft.Insights.Application.json +++ b/schemas/2018-05-01-preview/Microsoft.Insights.Application.json @@ -120,6 +120,80 @@ "type" ], "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" + }, + "webtests": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-05-01-preview" + ] + }, + "kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ping", + "multistep" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of WebTest 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" } }, "definitions": { @@ -431,6 +505,321 @@ "type" ], "description": "Microsoft.Insights/components/ProactiveDetectionConfigs" + }, + "HeaderField": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The name of the header." + }, + "value": { + "type": "string", + "description": "The value of the header." + } + }, + "description": "A header to add to the WebTest." + }, + "WebTestGeolocation": { + "type": "object", + "properties": { + "Id": { + "type": "string", + "description": "Location ID for the WebTest to run from." + } + }, + "description": "Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from." + }, + "WebTestProperties": { + "type": "object", + "properties": { + "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", + "description": "User defined description for this WebTest." + }, + "Enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Is the test actively being monitored." + }, + "Frequency": { + "oneOf": [ + { + "type": "integer", + "default": "300" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Interval in seconds between test runs for this WebTest. Default value is 300." + }, + "Kind": { + "oneOf": [ + { + "type": "string", + "enum": [ + "ping", + "multistep", + "basic", + "standard" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The kind of web test this is, valid choices are ping, multistep, basic, and standard." + }, + "Locations": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WebTestGeolocation" + } + }, + { + "$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." + }, + "Name": { + "type": "string", + "description": "User defined name if this WebTest." + }, + "Request": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesRequest" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of request properties" + }, + "RetryEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Allow for retries should this WebTest fail." + }, + "SyntheticMonitorId": { + "type": "string", + "description": "Unique ID of this WebTest. This is typically the same value as the Name field." + }, + "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." + }, + "ValidationRules": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesValidationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of validation rule properties" + } + }, + "required": [ + "Kind", + "Locations", + "Name", + "SyntheticMonitorId" + ], + "description": "Metadata describing a web test for an Azure resource." + }, + "WebTestPropertiesConfiguration": { + "type": "object", + "properties": { + "WebTest": { + "type": "string", + "description": "The XML specification of a WebTest to run against an application." + } + }, + "description": "An XML configuration specification for a WebTest." + }, + "WebTestPropertiesRequest": { + "type": "object", + "properties": { + "FollowRedirects": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Follow redirects for this web test." + }, + "Headers": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/HeaderField" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of headers and their values to add to the WebTest call." + }, + "HttpVerb": { + "type": "string", + "description": "Http verb to use for this web test." + }, + "ParseDependentRequests": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Parse Dependent request for this WebTest." + }, + "RequestBody": { + "type": "string", + "description": "Base64 encoded string body to send with this web test." + }, + "RequestUrl": { + "type": "string", + "description": "Url location to test." + } + }, + "description": "The collection of request properties" + }, + "WebTestPropertiesValidationRules": { + "type": "object", + "properties": { + "ContentValidation": { + "oneOf": [ + { + "$ref": "#/definitions/WebTestPropertiesValidationRulesContentValidation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The collection of content validation properties" + }, + "ExpectedHttpStatusCode": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Validate that the WebTest returns the http status code provided." + }, + "IgnoreHttpsStatusCode": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When set, validation will ignore the status code." + }, + "SSLCertRemainingLifetimeCheck": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true." + }, + "SSLCheck": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Checks to see if the SSL cert is still valid." + } + }, + "description": "The collection of validation rule properties" + }, + "WebTestPropertiesValidationRulesContentValidation": { + "type": "object", + "properties": { + "ContentMatch": { + "type": "string", + "description": "Content to look for in the return of the WebTest. Must not be null or empty." + }, + "IgnoreCase": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When set, this value makes the ContentMatch validation case insensitive." + }, + "PassIfTextFound": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match" + } + }, + "description": "The collection of content validation properties" } } } \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 944f93f28d..3015d5e4e0 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -6391,6 +6391,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/resourceDefinitions/components_ProactiveDetectionConfigs" }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-05-01-preview/Microsoft.Insights.Application.json#/resourceDefinitions/webtests" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-06-17-preview/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks" },