From e55aaa83b351750a85d78ecaa3b13f263f962389 Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 10 Oct 2019 12:26:33 +0300 Subject: [PATCH 1/7] add retentionInDays flag --- .../stable/2015-05-01/components_API.json | 5 +++++ .../stable/2015-05-01/examples/ComponentsCreate.json | 3 ++- .../stable/2015-05-01/examples/ComponentsGet.json | 3 ++- .../stable/2015-05-01/examples/ComponentsList.json | 6 ++++-- .../2015-05-01/examples/ComponentsListByResourceGroup.json | 6 ++++-- .../stable/2015-05-01/examples/ComponentsUpdate.json | 3 ++- .../2015-05-01/examples/ComponentsUpdateTagsOnly.json | 3 ++- .../2015-05-01/examples/ExportConfigurationDelete.json | 3 ++- .../stable/2015-05-01/examples/ExportConfigurationGet.json | 3 ++- .../2015-05-01/examples/ExportConfigurationsList.json | 3 ++- 10 files changed, 27 insertions(+), 11 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json index 4531ca4f30e2..210f6fa3fd43 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json @@ -486,6 +486,11 @@ "externalDocs": { "url": "https://aka.ms/sl0yqd" } + }, + "RetentionInDays": { + "type": "integer", + "description": "Retention period by number of days.", + "default": "90" } }, "required": [ diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json index d4394fc0e12b..7aec95ffe647 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json @@ -35,7 +35,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json index a3c1293a1e00..44262b186af1 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json @@ -26,7 +26,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json index c474d25e8d44..5b94f93fdf6d 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json @@ -26,7 +26,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 75.0 + "SamplingPercentage": 75.0, + "RetentionInDays": 90 } }, { @@ -48,7 +49,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 30.0 + "SamplingPercentage": 30.0, + "RetentionInDays": 90 } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json index 9ff62be79504..4b829ef64ff4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json @@ -27,7 +27,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "RetentionInDays": 90 } }, { @@ -49,7 +50,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 50.0 + "SamplingPercentage": 50.0, + "RetentionInDays": 90 } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json index 47733560cf56..49ae5da2ccfe 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json @@ -37,7 +37,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json index ba8fc91acc1c..2c85c747bc54 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json @@ -41,7 +41,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json index 2df18ceeeb44..3e28d18b54b2 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json @@ -27,7 +27,8 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob" + "ContainerName": "mystorageblob", + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json index 2df18ceeeb44..3e28d18b54b2 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json @@ -27,7 +27,8 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob" + "ContainerName": "mystorageblob", + "RetentionInDays": 90 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json index 58ef5216b176..d1a4d1a27815 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json @@ -27,7 +27,8 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob" + "ContainerName": "mystorageblob", + "RetentionInDays": 90 } ] } From 1320db4040c8ebebc068bf13c55fdea79737989b Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 10 Oct 2019 12:27:26 +0300 Subject: [PATCH 2/7] revert --- .../stable/2015-05-01/examples/ExportConfigurationDelete.json | 3 +-- .../stable/2015-05-01/examples/ExportConfigurationGet.json | 3 +-- .../stable/2015-05-01/examples/ExportConfigurationsList.json | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json index 3e28d18b54b2..2df18ceeeb44 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationDelete.json @@ -27,8 +27,7 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob", - "RetentionInDays": 90 + "ContainerName": "mystorageblob" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json index 3e28d18b54b2..2df18ceeeb44 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationGet.json @@ -27,8 +27,7 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob", - "RetentionInDays": 90 + "ContainerName": "mystorageblob" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json index d1a4d1a27815..58ef5216b176 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ExportConfigurationsList.json @@ -27,8 +27,7 @@ "LastGapTime": "9999-12-31T23:59:59.999Z", "PermanentErrorReason": "None", "StorageName": "mystorageblob", - "ContainerName": "mystorageblob", - "RetentionInDays": 90 + "ContainerName": "mystorageblob" } ] } From e0592724e37ca934b73fe8b4382b30fb96a5a468 Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 10 Oct 2019 13:09:23 +0300 Subject: [PATCH 3/7] Update components_API.json --- .../Microsoft.Insights/stable/2015-05-01/components_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json index 210f6fa3fd43..d34b131e6bfc 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json @@ -490,7 +490,7 @@ "RetentionInDays": { "type": "integer", "description": "Retention period by number of days.", - "default": "90" + "default": 90 } }, "required": [ From e48623cf3e11e5c365d9bd2984f7ad50bad82bc6 Mon Sep 17 00:00:00 2001 From: arolshan Date: Wed, 16 Oct 2019 13:37:23 +0300 Subject: [PATCH 4/7] Update components_API.json --- .../Microsoft.Insights/stable/2015-05-01/components_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json index d34b131e6bfc..b974f6314c6a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json @@ -489,7 +489,7 @@ }, "RetentionInDays": { "type": "integer", - "description": "Retention period by number of days.", + "description": "Retention period in days.", "default": 90 } }, From 11d05cf08366282d329c0c42b675383254502cd4 Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 17 Oct 2019 13:28:53 +0300 Subject: [PATCH 5/7] create new api version --- .../2015-05-01/examples/ComponentsCreate.json | 3 +- .../2015-05-01/examples/ComponentsGet.json | 3 +- .../2015-05-01/examples/ComponentsList.json | 6 +- .../ComponentsListByResourceGroup.json | 6 +- .../2015-05-01/examples/ComponentsUpdate.json | 3 +- .../examples/ComponentsUpdateTagsOnly.json | 3 +- .../stable/2019-10-01/components_API.json | 620 ++++++++++++++++++ .../2019-10-01/examples/ComponentsCreate.json | 44 ++ .../2019-10-01/examples/ComponentsDelete.json | 12 + .../2019-10-01/examples/ComponentsGet.json | 35 + .../2019-10-01/examples/ComponentsList.json | 61 ++ .../ComponentsListByResourceGroup.json | 62 ++ .../2019-10-01/examples/ComponentsPurge.json | 28 + .../examples/ComponentsPurgeStatus.json | 16 + .../2019-10-01/examples/ComponentsUpdate.json | 46 ++ .../examples/ComponentsUpdateTagsOnly.json | 50 ++ 16 files changed, 982 insertions(+), 16 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsDelete.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json index 7aec95ffe647..d4394fc0e12b 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json @@ -35,8 +35,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "SamplingPercentage": 100.0 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json index 44262b186af1..a3c1293a1e00 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json @@ -26,8 +26,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "SamplingPercentage": 100.0 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json index 5b94f93fdf6d..c474d25e8d44 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json @@ -26,8 +26,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 75.0, - "RetentionInDays": 90 + "SamplingPercentage": 75.0 } }, { @@ -49,8 +48,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 30.0, - "RetentionInDays": 90 + "SamplingPercentage": 30.0 } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json index 4b829ef64ff4..9ff62be79504 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json @@ -27,8 +27,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "SamplingPercentage": 100.0 } }, { @@ -50,8 +49,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 50.0, - "RetentionInDays": 90 + "SamplingPercentage": 50.0 } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json index 49ae5da2ccfe..47733560cf56 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json @@ -37,8 +37,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "SamplingPercentage": 100.0 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json index 2c85c747bc54..ba8fc91acc1c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json @@ -41,8 +41,7 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "SamplingPercentage": 100.0 } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json new file mode 100644 index 000000000000..b974f6314c6a --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json @@ -0,0 +1,620 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights client for Components.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components": { + "get": { + "description": "Gets a list of all Application Insights components within a subscription.", + "operationId": "Components_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Application Insights component definitions.", + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponentListResult" + } + } + }, + "x-ms-examples": { + "ComponentsList.json": { + "$ref": "./examples/ComponentsList.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components": { + "get": { + "description": "Gets a list of Application Insights components within a resource group.", + "operationId": "Components_ListByResourceGroup", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more Application Insights component definitions.", + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponentListResult" + } + } + }, + "x-ms-examples": { + "ComponentListByResourceGroup": { + "$ref": "./examples/ComponentsListByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}": { + "delete": { + "description": "Deletes an Application Insights component.", + "operationId": "Components_Delete", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "Successful request when deleting an Application Insights component." + }, + "204": { + "description": "The specified component does not exist." + } + }, + "x-ms-examples": { + "ComponentsDelete": { + "$ref": "./examples/ComponentsDelete.json" + } + } + }, + "get": { + "description": "Returns an Application Insights component.", + "operationId": "Components_Get", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "An Application Insights Component definition.", + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponent" + } + } + }, + "x-ms-examples": { + "ComponentGet": { + "$ref": "./examples/ComponentsGet.json" + } + } + }, + "put": { + "description": "Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.", + "operationId": "Components_CreateOrUpdate", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "name": "InsightProperties", + "description": "Properties that need to be specified to create an Application Insights component.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponent" + } + } + ], + "responses": { + "200": { + "description": "Successful request when creating or updating an Application Insights component. The updated component is returned.", + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponent" + } + } + }, + "x-ms-examples": { + "ComponentCreate": { + "$ref": "./examples/ComponentsCreate.json" + }, + "ComponentUpdate": { + "$ref": "./examples/ComponentsUpdate.json" + } + } + }, + "patch": { + "description": "Updates an existing component's tags. To update other fields use the CreateOrUpdate method.", + "operationId": "Components_UpdateTags", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "name": "ComponentTags", + "description": "Updated tag information to set into the component instance.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/TagsResource" + } + } + ], + "responses": { + "200": { + "description": "Updating the Application Insights component's tags was successful. Component tags are updated and returned with the rest of the Component's object properties.", + "schema": { + "$ref": "#/definitions/ApplicationInsightsComponent" + } + } + }, + "x-ms-examples": { + "ComponentUpdateTagsOnly": { + "$ref": "./examples/ComponentsUpdateTagsOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge": { + "post": { + "description": "Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.", + "operationId": "Components_Purge", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ComponentPurgeParameter" + } + ], + "responses": { + "202": { + "description": "Accepted request for purging an Application Insights component.", + "schema": { + "$ref": "#/definitions/ComponentPurgeResponse" + } + } + }, + "x-ms-examples": { + "ComponentPurge": { + "$ref": "./examples/ComponentsPurge.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}": { + "get": { + "description": "Get status for an ongoing purge operation.", + "operationId": "Components_GetPurgeStatus", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ComponentPurgeIdParameter" + } + ], + "responses": { + "200": { + "description": "Returns status of purge operation in body of response. e.g.: running, completed.", + "schema": { + "$ref": "#/definitions/ComponentPurgeStatusResponse" + } + } + }, + "x-ms-examples": { + "ComponentPurge": { + "$ref": "./examples/ComponentsPurgeStatus.json" + } + } + } + } + }, + "definitions": { + "ComponentsResource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "TagsResource": { + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "A container holding only the Tags for a resource, allowing the user to update the tags on a WebTest instance." + }, + "ApplicationInsightsComponent": { + "properties": { + "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." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Properties that define an Application Insights component resource.", + "$ref": "#/definitions/ApplicationInsightsComponentProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/ComponentsResource" + } + ], + "required": [ + "kind" + ], + "description": "An Application Insights component definition." + }, + "ApplicationInsightsComponentProperties": { + "description": "Properties that define an Application Insights component resource.", + "properties": { + "ApplicationId": { + "type": "string", + "description": "The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.", + "readOnly": true + }, + "AppId": { + "type": "string", + "readOnly": true, + "description": "Application Insights Unique ID for your Application." + }, + "Application_Type": { + "type": "string", + "description": "Type of application being monitored.", + "default": "web", + "enum": [ + "web", + "other" + ], + "x-ms-enum": { + "name": "ApplicationType", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + }, + "Flow_Type": { + "type": "string", + "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.", + "default": "Bluefield", + "enum": [ + "Bluefield" + ], + "x-ms-enum": { + "name": "FlowType", + "modelAsString": true + } + }, + "Request_Source": { + "type": "string", + "description": "Describes what tool created this Application Insights component. Customers using this API should set this to the default 'rest'.", + "default": "rest", + "enum": [ + "rest" + ], + "x-ms-enum": { + "name": "RequestSource", + "modelAsString": true + } + }, + "InstrumentationKey": { + "type": "string", + "readOnly": true, + "description": "Application Insights Instrumentation key. A read-only value that applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value will be supplied upon construction of each new Application Insights component." + }, + "CreationDate": { + "type": "string", + "readOnly": true, + "description": "Creation Date for the Application Insights component, in ISO 8601 format.", + "format": "date-time" + }, + "TenantId": { + "type": "string", + "readOnly": true, + "description": "Azure Tenant Id." + }, + "HockeyAppId": { + "type": "string", + "description": "The unique application ID created when a new application is added to HockeyApp, used for communications with HockeyApp.", + "externalDocs": { + "url": "https://aka.ms/ewjuel" + } + }, + "HockeyAppToken": { + "type": "string", + "description": "Token used to authenticate communications with between Application Insights and HockeyApp.", + "readOnly": true, + "externalDocs": { + "url": "https://aka.ms/sls76s" + } + }, + "provisioningState": { + "type": "string", + "description": "Current state of this component: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Succeeded, Deploying, Canceled, and Failed.", + "readOnly": true + }, + "SamplingPercentage": { + "type": "number", + "format": "double", + "description": "Percentage of the data produced by the application being monitored that is being sampled for Application Insights telemetry.", + "externalDocs": { + "url": "https://aka.ms/sl0yqd" + } + }, + "RetentionInDays": { + "type": "integer", + "description": "Retention period in days.", + "default": 90 + } + }, + "required": [ + "Application_Type" + ] + }, + "ApplicationInsightsComponentListResult": { + "description": "Describes the list of Application Insights Resources.", + "required": [ + "value" + ], + "properties": { + "value": { + "type": "array", + "description": "List of Application Insights component definitions.", + "items": { + "$ref": "#/definitions/ApplicationInsightsComponent" + } + }, + "nextLink": { + "type": "string", + "description": "The URI to get the next set of Application Insights component definitions if too many components where returned in the result set." + } + } + }, + "ComponentPurgeBody": { + "description": "Describes the body of a purge request for an App Insights component", + "required": [ + "table", + "filters" + ], + "properties": { + "table": { + "type": "string", + "description": "Table from which to purge data." + }, + "filters": { + "type": "array", + "description": "The set of columns and filters (queries) to run over them to purge the resulting data.", + "items": { + "$ref": "#/definitions/ComponentPurgeBodyFilters" + } + } + } + }, + "ComponentPurgeBodyFilters": { + "description": "User-defined filters to return data which will be purged from the table.", + "properties": { + "column": { + "description": "The column of the table over which the given query should run", + "type": "string" + }, + "operator": { + "description": "A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.", + "type": "string" + }, + "value": { + "description": "the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values." + }, + "key": { + "description": "When filtering over custom dimensions, this key will be used as the name of the custom dimension.", + "type": "string" + } + } + }, + "ComponentPurgeResponse": { + "description": "Response containing operationId for a specific purge action.", + "properties": { + "operationId": { + "description": "Id to use when querying for status for a particular purge operation.", + "type": "string" + } + }, + "required": [ + "operationId" + ] + }, + "ComponentPurgeStatusResponse": { + "description": "Response containing status for a specific purge operation.", + "properties": { + "status": { + "description": "Status of the operation represented by the requested Id.", + "type": "string", + "enum": [ + "pending", + "completed" + ], + "x-ms-enum": { + "name": "PurgeState", + "modelAsString": true + } + } + }, + "required": [ + "status" + ] + } + }, + "parameters": { + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights component resource.", + "x-ms-parameter-location": "method" + }, + "ComponentPurgeParameter": { + "name": "body", + "in": "body", + "description": "Describes the body of a request to purge data in a single table of an Application Insights component", + "required": true, + "schema": { + "$ref": "#/definitions/ComponentPurgeBody" + }, + "x-ms-parameter-location": "method" + }, + "ComponentPurgeIdParameter": { + "name": "purgeId", + "in": "path", + "required": true, + "type": "string", + "description": "In a purge status request, this is the Id of the operation the status of which is returned.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json new file mode 100644 index 000000000000..7aec95ffe647 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component", + "InsightProperties": { + "location": "South Central US", + "kind": "web", + "properties": { + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 100.0, + "RetentionInDays": 90 + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsDelete.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsDelete.json new file mode 100644 index 000000000000..e2993692d798 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json new file mode 100644 index 000000000000..44262b186af1 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 100.0, + "RetentionInDays": 90 + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json new file mode 100644 index 000000000000..5b94f93fdf6d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "16526d1a-dfba-4362-a9e9-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "dc5931c7-a7ad-4ad0-89d6-123456789abc", + "CreationDate": "2017-02-14T12:24:05.0041213+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 75.0, + "RetentionInDays": 90 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component", + "name": "my-other-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-other-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 30.0, + "RetentionInDays": 90 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json new file mode 100644 index 000000000000..4b829ef64ff4 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "16526d1a-dfba-4362-a9e9-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "dc5931c7-a7ad-4ad0-89d6-123456789abc", + "CreationDate": "2017-02-14T12:24:05.0041213+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 100.0, + "RetentionInDays": 90 + } + }, + { + "id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component", + "name": "my-other-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": "", + "kind": "web", + "properties": { + "ApplicationId": "my-other-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 50.0, + "RetentionInDays": 90 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json new file mode 100644 index 000000000000..e99c48948e38 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "OIAutoRest5123", + "resourceName": "aztest5048", + "api-version": "2015-03-20", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "body": { + "table": "Heartbeat", + "filters": [ + { + "column": "TimeGenerated", + "operator": ">", + "value": "2017-09-01T00:00:00" + } + ] + } + }, + "responses": { + "202": { + "headers": { + "x-ms-status-location": "https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.insights/components/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2015-05-01" + }, + "body": { + "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d" + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json new file mode 100644 index 000000000000..8d80f4b96b7d --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "resourceGroupName": "OIAutoRest5123", + "resourceName": "aztest5048", + "api-version": "2015-05-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "purgeId": "purge-970318e7-b859-4edb-8903-83b1b54d0b74" + }, + "responses": { + "200": { + "body": { + "status": "completed" + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json new file mode 100644 index 000000000000..49ae5da2ccfe --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component", + "InsightProperties": { + "location": "South Central US", + "kind": "web", + "tags": { + "ApplicationGatewayType": "Internal-Only", + "BillingEntity": "Self" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": { + "ApplicationGatewayType": "Internal-Only", + "BillingEntity": "Self" + }, + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 100.0, + "RetentionInDays": 90 + } + } + } + } +} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json new file mode 100644 index 000000000000..2c85c747bc54 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "my-component", + "ComponentTags": { + "tags": { + "ApplicationGatewayType": "Internal-Only", + "BillingEntity": "Self", + "Color": "AzureBlue", + "CustomField_01": "Custom text in some random field named randomly", + "NodeType": "Edge" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", + "name": "my-component", + "type": "Microsoft.Insights/components", + "location": "South Central US", + "tags": { + "ApplicationGatewayType": "Internal-Only", + "BillingEntity": "Self", + "Color": "AzureBlue", + "CustomField_01": "Custom text in some random field named randomly", + "NodeType": "Edge" + }, + "kind": "web", + "properties": { + "ApplicationId": "my-component", + "AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc", + "Application_Type": "web", + "Flow_Type": "Bluefield", + "Request_Source": "rest", + "InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc", + "CreationDate": "2017-01-24T01:05:38.5934061+00:00", + "TenantId": "f438d567-7177-4fe1-a5e3-123456789abc", + "HockeyAppId": "", + "HockeyAppToken": "", + "provisioningState": "Succeeded", + "SamplingPercentage": 100.0, + "RetentionInDays": 90 + } + } + } + } +} From c240f7a560003c13955ea9e6abe2baa4f3946952 Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 17 Oct 2019 14:57:44 +0300 Subject: [PATCH 6/7] add new examples --- .../stable/2015-05-01/components_API.json | 8 ++++---- .../2015-05-01/examples/ComponentsCreate.json | 3 ++- .../stable/2015-05-01/examples/ComponentsGet.json | 3 ++- .../stable/2015-05-01/examples/ComponentsList.json | 6 ++++-- .../examples/ComponentsListByResourceGroup.json | 6 ++++-- .../2015-05-01/examples/ComponentsUpdate.json | 3 ++- .../examples/ComponentsUpdateTagsOnly.json | 3 ++- .../stable/2019-10-01/components_API.json | 13 +++++++++++++ .../2019-10-01/examples/ComponentsCreate.json | 5 ++++- .../stable/2019-10-01/examples/ComponentsGet.json | 5 ++++- .../stable/2019-10-01/examples/ComponentsList.json | 5 ++++- .../examples/ComponentsListByResourceGroup.json | 5 ++++- .../2019-10-01/examples/ComponentsUpdate.json | 5 ++++- .../examples/ComponentsUpdateTagsOnly.json | 5 ++++- 14 files changed, 57 insertions(+), 18 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json index b974f6314c6a..1dce0dd1966a 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/components_API.json @@ -487,10 +487,10 @@ "url": "https://aka.ms/sl0yqd" } }, - "RetentionInDays": { - "type": "integer", - "description": "Retention period in days.", - "default": 90 + "ConnectionString": { + "type": "string", + "description": "Application Insights component connection string.", + "readOnly": true } }, "required": [ diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json index d4394fc0e12b..d28e85a2f52c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsCreate.json @@ -35,7 +35,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json index a3c1293a1e00..ce3b656cb070 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsGet.json @@ -26,7 +26,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json index c474d25e8d44..1fef3a7a6a17 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsList.json @@ -26,7 +26,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 75.0 + "SamplingPercentage": 75.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } }, { @@ -48,7 +49,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 30.0 + "SamplingPercentage": 30.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json index 9ff62be79504..5578409f06cf 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsListByResourceGroup.json @@ -27,7 +27,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } }, { @@ -49,7 +50,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 50.0 + "SamplingPercentage": 50.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } ], diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json index 47733560cf56..773895c1d859 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdate.json @@ -37,7 +37,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json index ba8fc91acc1c..ace88330784c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/ComponentsUpdateTagsOnly.json @@ -41,7 +41,8 @@ "HockeyAppId": "", "HockeyAppToken": "", "provisioningState": "Succeeded", - "SamplingPercentage": 100.0 + "SamplingPercentage": 100.0, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json index b974f6314c6a..b4b3c9f6c1c1 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json @@ -487,10 +487,23 @@ "url": "https://aka.ms/sl0yqd" } }, + "ConnectionString": { + "type": "string", + "readOnly": true, + "description": "Application Insights component connection string." + }, "RetentionInDays": { "type": "integer", "description": "Retention period in days.", "default": 90 + }, + "DisableIpMasking": {d + "type": "boolean", + "description": "Disable IP masking." + }, + "ImmediatePurgeDataOn30Days": { + "type": "boolean", + "description": "Purge data immediately after 30 days." } }, "required": [ diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json index 7aec95ffe647..a2603e240382 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsCreate.json @@ -36,7 +36,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json index 44262b186af1..ea7eb18ea7d0 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsGet.json @@ -27,7 +27,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json index 5b94f93fdf6d..1f8c716b4475 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsList.json @@ -27,7 +27,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 75.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } }, { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json index 4b829ef64ff4..c5df85b268f4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsListByResourceGroup.json @@ -28,7 +28,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } }, { diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json index 49ae5da2ccfe..ac92ef81e926 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdate.json @@ -38,7 +38,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json index 2c85c747bc54..3487365d9a29 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsUpdateTagsOnly.json @@ -42,7 +42,10 @@ "HockeyAppToken": "", "provisioningState": "Succeeded", "SamplingPercentage": 100.0, - "RetentionInDays": 90 + "RetentionInDays": 90, + "ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc", + "DisableIpMasking": false, + "ImmediatePurgeDataOn30Days": false } } } From e7a9b8d11812a864caf40964484b1628a8d56a67 Mon Sep 17 00:00:00 2001 From: arolshan Date: Thu, 17 Oct 2019 15:01:31 +0300 Subject: [PATCH 7/7] remove unchanged APIs --- .../stable/2019-10-01/components_API.json | 164 +----------------- .../2019-10-01/examples/ComponentsPurge.json | 28 --- .../examples/ComponentsPurgeStatus.json | 16 -- 3 files changed, 1 insertion(+), 207 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json index b4b3c9f6c1c1..a7f35cb885b3 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/components_API.json @@ -243,78 +243,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge": { - "post": { - "description": "Purges data in an Application Insights component by a set of user-defined filters.\n\nIn order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.", - "operationId": "Components_Purge", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ComponentPurgeParameter" - } - ], - "responses": { - "202": { - "description": "Accepted request for purging an Application Insights component.", - "schema": { - "$ref": "#/definitions/ComponentPurgeResponse" - } - } - }, - "x-ms-examples": { - "ComponentPurge": { - "$ref": "./examples/ComponentsPurge.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}": { - "get": { - "description": "Get status for an ongoing purge operation.", - "operationId": "Components_GetPurgeStatus", - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ComponentPurgeIdParameter" - } - ], - "responses": { - "200": { - "description": "Returns status of purge operation in body of response. e.g.: running, completed.", - "schema": { - "$ref": "#/definitions/ComponentPurgeStatusResponse" - } - } - }, - "x-ms-examples": { - "ComponentPurge": { - "$ref": "./examples/ComponentsPurgeStatus.json" - } - } - } } }, "definitions": { @@ -497,7 +425,7 @@ "description": "Retention period in days.", "default": 90 }, - "DisableIpMasking": {d + "DisableIpMasking": { "type": "boolean", "description": "Disable IP masking." }, @@ -528,78 +456,6 @@ "description": "The URI to get the next set of Application Insights component definitions if too many components where returned in the result set." } } - }, - "ComponentPurgeBody": { - "description": "Describes the body of a purge request for an App Insights component", - "required": [ - "table", - "filters" - ], - "properties": { - "table": { - "type": "string", - "description": "Table from which to purge data." - }, - "filters": { - "type": "array", - "description": "The set of columns and filters (queries) to run over them to purge the resulting data.", - "items": { - "$ref": "#/definitions/ComponentPurgeBodyFilters" - } - } - } - }, - "ComponentPurgeBodyFilters": { - "description": "User-defined filters to return data which will be purged from the table.", - "properties": { - "column": { - "description": "The column of the table over which the given query should run", - "type": "string" - }, - "operator": { - "description": "A query operator to evaluate over the provided column and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL query.", - "type": "string" - }, - "value": { - "description": "the value for the operator to function over. This can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of values." - }, - "key": { - "description": "When filtering over custom dimensions, this key will be used as the name of the custom dimension.", - "type": "string" - } - } - }, - "ComponentPurgeResponse": { - "description": "Response containing operationId for a specific purge action.", - "properties": { - "operationId": { - "description": "Id to use when querying for status for a particular purge operation.", - "type": "string" - } - }, - "required": [ - "operationId" - ] - }, - "ComponentPurgeStatusResponse": { - "description": "Response containing status for a specific purge operation.", - "properties": { - "status": { - "description": "Status of the operation represented by the requested Id.", - "type": "string", - "enum": [ - "pending", - "completed" - ], - "x-ms-enum": { - "name": "PurgeState", - "modelAsString": true - } - } - }, - "required": [ - "status" - ] } }, "parameters": { @@ -610,24 +466,6 @@ "type": "string", "description": "The name of the Application Insights component resource.", "x-ms-parameter-location": "method" - }, - "ComponentPurgeParameter": { - "name": "body", - "in": "body", - "description": "Describes the body of a request to purge data in a single table of an Application Insights component", - "required": true, - "schema": { - "$ref": "#/definitions/ComponentPurgeBody" - }, - "x-ms-parameter-location": "method" - }, - "ComponentPurgeIdParameter": { - "name": "purgeId", - "in": "path", - "required": true, - "type": "string", - "description": "In a purge status request, this is the Id of the operation the status of which is returned.", - "x-ms-parameter-location": "method" } } } diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json deleted file mode 100644 index e99c48948e38..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurge.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "OIAutoRest5123", - "resourceName": "aztest5048", - "api-version": "2015-03-20", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "body": { - "table": "Heartbeat", - "filters": [ - { - "column": "TimeGenerated", - "operator": ">", - "value": "2017-09-01T00:00:00" - } - ] - } - }, - "responses": { - "202": { - "headers": { - "x-ms-status-location": "https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.insights/components/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2015-05-01" - }, - "body": { - "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d" - } - } - } -} diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json deleted file mode 100644 index 8d80f4b96b7d..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2019-10-01/examples/ComponentsPurgeStatus.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "parameters": { - "resourceGroupName": "OIAutoRest5123", - "resourceName": "aztest5048", - "api-version": "2015-05-01", - "subscriptionId": "00000000-0000-0000-0000-00000000000", - "purgeId": "purge-970318e7-b859-4edb-8903-83b1b54d0b74" - }, - "responses": { - "200": { - "body": { - "status": "completed" - } - } - } -}