From 10e48c11a0d5bdbe32bea4bbfcdf802b4ce5bc46 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:37:44 -0700 Subject: [PATCH 01/24] Fix swagger correctness issues with 2017-05-01-preview metricdefinitions --- .../metricDefinitions_API.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json index 194c1df1b31b..8d4f67a2b7a1 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metricDefinitions_API.json @@ -197,7 +197,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -207,7 +207,11 @@ "Percent", "MilliSeconds", "ByteSeconds", - "Unspecified" + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", @@ -228,6 +232,14 @@ "$ref": "#/definitions/LocalizableString", "description": "the name and the display name of the metric, i.e. it is a localizable string." }, + "displayDescription": { + "type": "string", + "description": "Detailed description of this metric." + }, + "category": { + "type": "string", + "description": "Custom category name for this metric." + }, "unit": { "$ref": "#/definitions/Unit", "description": "the unit of the metric." From 971cea852a0d16d914a607b26cb07eb8ab2c8f96 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:38:42 -0700 Subject: [PATCH 02/24] Fix swagger correctness issues with 2017-05-01-preview metrics API --- .../preview/2017-05-01-preview/metrics_API.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json index c999f80fc92a..78b959d06e46 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json @@ -177,7 +177,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -187,7 +187,11 @@ "Percent", "MilliSeconds", "ByteSeconds", - "Unspecified" + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", @@ -306,6 +310,14 @@ "$ref": "#/definitions/LocalizableString", "description": "the name and the display name of the metric, i.e. it is localizable string." }, + "displayDescription": { + "type": "string", + "description": "Detailed description of this metric." + }, + "errorCode":{ + "type": "string", + "description": "'Success' or the error details on query failures for this metric." + }, "unit": { "$ref": "#/definitions/Unit", "description": "the unit of the metric." @@ -322,6 +334,7 @@ "id", "type", "name", + "displayDescription", "unit", "timeseries" ], From 72673875e8239c468d70314febd85fd24826f996 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:40:27 -0700 Subject: [PATCH 03/24] Fix swagger correctness issues with 2017-12-01-preview metricNamespaces API --- .../metricNamespaces_API.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json index 7003d55c5a8c..a97e040caf61 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json @@ -89,6 +89,19 @@ }, "description": "The fully qualified metric namespace name." }, + "NamespaceClassification": { + "type": "string", + "description": "Kind of namespace", + "enum": [ + "Platform", + "Custom", + "Qos" + ], + "x-ms-enum": { + "name": "NamespaceClassification", + "modelAsString": false + } + }, "MetricNamespace": { "type": "object", "properties": { @@ -102,7 +115,11 @@ }, "name": { "type": "string", - "description": "The name of the namespace." + "description": "The escaped name of the namespace." + }, + "classification": { + "$ref": "#/definitions/NamespaceClassification", + "description": "Kind of namespace" }, "properties": { "$ref": "#/definitions/MetricNamespaceName", From ef46ff7491489c5832fc9f1c8101a02cbf71b712 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:41:15 -0700 Subject: [PATCH 04/24] Update 2017-12-01-preview metricNamespaces example --- .../examples/GetMetricNamespaces.json | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json index 1eff5dfacb69..41cc86eb5b2a 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json @@ -1,7 +1,7 @@ { "parameters": { - "resourceUri": "subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb", - "startTime": "2018-08-31T15:53:00Z", + "resourceUri": "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "startTime": "2020-08-31T15:53:00Z", "api-version": "2017-12-01-preview" }, "responses": { @@ -9,11 +9,21 @@ "body": { "value": [ { - "id": "/subscriptions/a252e87d-ec06-45b1-8901-57e613be91b0/resourceGroups/larrytest/providers/Microsoft.DocumentDB/databaseAccounts/larrytestdocdb/providers/microsoft.insights/metricNamespaces/Microsoft.DocumentDB-databaseAccounts", - "name": "Microsoft.DocumentDB-databaseAccounts", + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/Azure.ApplicationInsights", + "name": "Azure.ApplicationInsights", "type": "Microsoft.Insights/metricNamespaces", + "classification": "Custom", "properties": { - "metricNamespaceName": "Microsoft.DocumentDB/databaseAccounts" + "metricNamespaceName": "Azure.ApplicationInsights" + } + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricNamespaces/microsoft.insights-components", + "name": "microsoft.insights-components", + "type": "Microsoft.Insights/metricNamespaces", + "classification": "Platform", + "properties": { + "metricNamespaceName": "microsoft.insights/components" } } ] From 4682c6a48973cf027b7e367b3bd233da51e16114 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:44:21 -0700 Subject: [PATCH 05/24] Fix swagger correctness issues with 2016-09-01 metricDefinitions API --- .../stable/2016-03-01/metricDefinitions_API.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json index 8e4c1992551a..a559365e72c6 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/metricDefinitions_API.json @@ -184,7 +184,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -192,7 +192,13 @@ "CountPerSecond", "BytesPerSecond", "Percent", - "MilliSeconds" + "MilliSeconds", + "ByteSeconds", + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", From 6e77801f2397a1708499ce3ebb4f3b612014cc9b Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:45:56 -0700 Subject: [PATCH 06/24] Fix swagger correctness issues with 2016-09-01 metrics API --- .../stable/2016-09-01/metrics_API.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json index ea2dcd0237b1..e3de26a122ef 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/metrics_API.json @@ -156,7 +156,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -164,7 +164,13 @@ "CountPerSecond", "BytesPerSecond", "Percent", - "MilliSeconds" + "MilliSeconds", + "ByteSeconds", + "Unspecified", + "Cores", + "MilliCores", + "NanoCores", + "BitsPerSecond" ], "x-ms-enum": { "name": "Unit", From bad590a96d603af3c76225cf80e95ed5e82b29b1 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:49:56 -0700 Subject: [PATCH 07/24] Add additional 2018-01-01 metricDefinitions API example Shows additional metric properties like category. --- ...tMetricDefinitionsApplicationInsights.json | 1969 +++++++++++++++++ 1 file changed, 1969 insertions(+) create mode 100644 specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json new file mode 100644 index 000000000000..bb82ca5a506c --- /dev/null +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json @@ -0,0 +1,1969 @@ +{ + "parameters": { + "resourceUri": "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions", + "api-version": "2018-01-01", + "metricnamespace": "microsoft.insights/components" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/availabilityPercentage", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Availability", + "name": { + "value": "availabilityResults/availabilityPercentage", + "localizedValue": "Availability" + }, + "displayDescription": "Percentage of successfully completed availability tests", + "isDimensionRequired": false, + "unit": "Percent", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "availabilityResult/name", + "localizedValue": "Test name" + }, + { + "value": "availabilityResult/location", + "localizedValue": "Run location" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Availability", + "name": { + "value": "availabilityResults/count", + "localizedValue": "Availability tests" + }, + "displayDescription": "Count of availability tests", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "availabilityResult/name", + "localizedValue": "Test name" + }, + { + "value": "availabilityResult/location", + "localizedValue": "Run location" + }, + { + "value": "availabilityResult/success", + "localizedValue": "Test result" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/duration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Availability", + "name": { + "value": "availabilityResults/duration", + "localizedValue": "Availability test duration" + }, + "displayDescription": "Availability test duration", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "availabilityResult/name", + "localizedValue": "Test name" + }, + { + "value": "availabilityResult/location", + "localizedValue": "Run location" + }, + { + "value": "availabilityResult/success", + "localizedValue": "Test result" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/networkDuration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Browser", + "name": { + "value": "browserTimings/networkDuration", + "localizedValue": "Page load network connect time" + }, + "displayDescription": "Time between user request and network connection. Includes DNS lookup and transport connection.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/processingDuration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Browser", + "name": { + "value": "browserTimings/processingDuration", + "localizedValue": "Client processing time" + }, + "displayDescription": "Time between receiving the last byte of a document until the DOM is loaded. Async requests may still be processing.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/receiveDuration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Browser", + "name": { + "value": "browserTimings/receiveDuration", + "localizedValue": "Receiving response time" + }, + "displayDescription": "Time between the first and last bytes, or until disconnection.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/sendDuration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Browser", + "name": { + "value": "browserTimings/sendDuration", + "localizedValue": "Send request time" + }, + "displayDescription": "Time between network connection and receiving the first byte.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/totalDuration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Browser", + "name": { + "value": "browserTimings/totalDuration", + "localizedValue": "Browser page load time" + }, + "displayDescription": "Time from user request until DOM, stylesheets, scripts and images are loaded.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Server", + "name": { + "value": "dependencies/count", + "localizedValue": "Dependency calls" + }, + "displayDescription": "Count of calls made by the application to external resources.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "dependency/type", + "localizedValue": "Dependency type" + }, + { + "value": "dependency/performanceBucket", + "localizedValue": "Dependency performance" + }, + { + "value": "dependency/success", + "localizedValue": "Successful call" + }, + { + "value": "dependency/target", + "localizedValue": "Target of a dependency call" + }, + { + "value": "dependency/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/duration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Server", + "name": { + "value": "dependencies/duration", + "localizedValue": "Dependency duration" + }, + "displayDescription": "Duration of calls made by the application to external resources.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "dependency/type", + "localizedValue": "Dependency type" + }, + { + "value": "dependency/performanceBucket", + "localizedValue": "Dependency performance" + }, + { + "value": "dependency/success", + "localizedValue": "Successful call" + }, + { + "value": "dependency/target", + "localizedValue": "Target of a dependency call" + }, + { + "value": "dependency/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/failed", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Failures", + "name": { + "value": "dependencies/failed", + "localizedValue": "Dependency call failures" + }, + "displayDescription": "Count of failed dependency calls made by the application to external resources.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "dependency/type", + "localizedValue": "Dependency type" + }, + { + "value": "dependency/performanceBucket", + "localizedValue": "Dependency performance" + }, + { + "value": "dependency/target", + "localizedValue": "Target of a dependency call" + }, + { + "value": "dependency/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Usage", + "name": { + "value": "pageViews/count", + "localizedValue": "Page views" + }, + "displayDescription": "Count of page views.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/duration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Usage", + "name": { + "value": "pageViews/duration", + "localizedValue": "Page view load time" + }, + "displayDescription": "Page view load time", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestExecutionTime", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/requestExecutionTime", + "localizedValue": "HTTP request execution time" + }, + "displayDescription": "Execution time of the most recent request.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsInQueue", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/requestsInQueue", + "localizedValue": "HTTP requests in application queue" + }, + "displayDescription": "Length of the application request queue.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsPerSecond", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/requestsPerSecond", + "localizedValue": "HTTP request rate" + }, + "displayDescription": "Rate of all requests to the application per second from ASP.NET.", + "isDimensionRequired": false, + "unit": "CountPerSecond", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/exceptionsPerSecond", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/exceptionsPerSecond", + "localizedValue": "Exception rate" + }, + "displayDescription": "Count of handled and unhandled exceptions reported to windows, including .NET exceptions and unmanaged exceptions that are converted into .NET exceptions.", + "isDimensionRequired": false, + "unit": "CountPerSecond", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processIOBytesPerSecond", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/processIOBytesPerSecond", + "localizedValue": "Process IO rate" + }, + "displayDescription": "Total bytes per second read and written to files, network and devices.", + "isDimensionRequired": false, + "unit": "BytesPerSecond", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processCpuPercentage", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/processCpuPercentage", + "localizedValue": "Process CPU" + }, + "displayDescription": "The percentage of elapsed time that all process threads used the processor to execute instructions. This can vary between 0 to 100. This metric indicates the performance of w3wp process alone.", + "isDimensionRequired": false, + "unit": "Percent", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processorCpuPercentage", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/processorCpuPercentage", + "localizedValue": "Processor time" + }, + "displayDescription": "The percentage of time that the processor spends in non-idle threads.", + "isDimensionRequired": false, + "unit": "Percent", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/memoryAvailableBytes", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/memoryAvailableBytes", + "localizedValue": "Available memory" + }, + "displayDescription": "Physical memory immediately available for allocation to a process or for system use.", + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processPrivateBytes", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Performance counters", + "name": { + "value": "performanceCounters/processPrivateBytes", + "localizedValue": "Process private bytes" + }, + "displayDescription": "Memory exclusively assigned to the monitored application's processes.", + "isDimensionRequired": false, + "unit": "Bytes", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/duration", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Server", + "name": { + "value": "requests/duration", + "localizedValue": "Server response time" + }, + "displayDescription": "Time between receiving an HTTP request and finishing sending the response.", + "isDimensionRequired": false, + "unit": "MilliSeconds", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average", + "Maximum", + "Minimum" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "request/performanceBucket", + "localizedValue": "Request performance" + }, + { + "value": "request/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "request/success", + "localizedValue": "Successful request" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Server", + "name": { + "value": "requests/count", + "localizedValue": "Server requests" + }, + "displayDescription": "Count of HTTP requests completed.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "request/performanceBucket", + "localizedValue": "Request performance" + }, + { + "value": "request/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "request/success", + "localizedValue": "Successful request" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/failed", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Failures", + "name": { + "value": "requests/failed", + "localizedValue": "Failed requests" + }, + "displayDescription": "Count of HTTP requests marked as failed. In most cases these are requests with a response code >= 400 and not equal to 401.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "request/performanceBucket", + "localizedValue": "Request performance" + }, + { + "value": "request/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/rate", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Server", + "name": { + "value": "requests/rate", + "localizedValue": "Server request rate" + }, + "displayDescription": "Rate of server requests per second", + "isDimensionRequired": false, + "unit": "CountPerSecond", + "primaryAggregationType": "Average", + "supportedAggregationTypes": [ + "Average" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "request/performanceBucket", + "localizedValue": "Request performance" + }, + { + "value": "request/resultCode", + "localizedValue": "Result code" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "request/success", + "localizedValue": "Successful request" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Failures", + "name": { + "value": "exceptions/count", + "localizedValue": "Exceptions" + }, + "displayDescription": "Combined count of all uncaught exceptions.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + }, + { + "value": "client/type", + "localizedValue": "Device type" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/browser", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Failures", + "name": { + "value": "exceptions/browser", + "localizedValue": "Browser exceptions" + }, + "displayDescription": "Count of uncaught exceptions thrown in the browser.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/server", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Failures", + "name": { + "value": "exceptions/server", + "localizedValue": "Server exceptions" + }, + "displayDescription": "Count of uncaught exceptions thrown in the server application.", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + }, + { + "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/traces/count", + "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", + "namespace": "microsoft.insights/components", + "category": "Usage", + "name": { + "value": "traces/count", + "localizedValue": "Traces" + }, + "displayDescription": "Trace document count", + "isDimensionRequired": false, + "unit": "Count", + "primaryAggregationType": "Count", + "supportedAggregationTypes": [ + "Count" + ], + "metricAvailabilities": [ + { + "timeGrain": "PT1M", + "retention": "P93D" + }, + { + "timeGrain": "PT5M", + "retention": "P93D" + }, + { + "timeGrain": "PT15M", + "retention": "P93D" + }, + { + "timeGrain": "PT30M", + "retention": "P93D" + }, + { + "timeGrain": "PT1H", + "retention": "P93D" + }, + { + "timeGrain": "PT6H", + "retention": "P93D" + }, + { + "timeGrain": "PT12H", + "retention": "P93D" + }, + { + "timeGrain": "P1D", + "retention": "P93D" + } + ], + "dimensions": [ + { + "value": "trace/severityLevel", + "localizedValue": "Severity level" + }, + { + "value": "operation/synthetic", + "localizedValue": "Is traffic synthetic" + }, + { + "value": "cloud/roleName", + "localizedValue": "Cloud role name" + }, + { + "value": "cloud/roleInstance", + "localizedValue": "Cloud role instance" + } + ], + "isMetadataCustom": false + } + ] + } + } + } +} From 5f2a94e7eb7b664a757558ba350875619c7077a2 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:51:42 -0700 Subject: [PATCH 08/24] Fix swagger correctness issues with 2018-01-01 metricDefinitions API Fix swagger correctness issues with 2018-01-01 metricDefinitions API Also add an extra example --- .../stable/2018-01-01/metricDefinitions_API.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json index 186b0b6002f2..ac4c7d13b005 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json @@ -74,6 +74,9 @@ "x-ms-examples": { "Get Metric Definitions without filter": { "$ref": "./examples/GetMetricDefinitions.json" + }, + "Get Application Insights Metric Definitions without filter": { + "$ref": "./examples/GetMetricDefinitionsApplicationInsights.json" } } } @@ -113,7 +116,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -168,6 +171,14 @@ "$ref": "#/definitions/LocalizableString", "description": "the name and the display name of the metric, i.e. it is a localizable string." }, + "displayDescription": { + "type": "string", + "description": "Detailed description of this metric." + }, + "category": { + "type": "string", + "description": "Custom category name for this metric." + }, "unit": { "$ref": "#/definitions/Unit", "description": "the unit of the metric." From 33341e6f65e284881e6d2f33df0d4924b254e66b Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:55:02 -0700 Subject: [PATCH 09/24] Fix swagger correctness issues with 2018-01-01 metrics API --- .../stable/2018-01-01/metrics_API.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json index a66c8125be9e..a61b6aabb391 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json @@ -127,7 +127,7 @@ }, "Unit": { "type": "string", - "description": "the unit of the metric.", + "description": "The unit of the metric.", "enum": [ "Count", "Bytes", @@ -268,6 +268,14 @@ "$ref": "#/definitions/LocalizableString", "description": "the name and the display name of the metric, i.e. it is localizable string." }, + "displayDescription": { + "type": "string", + "description": "Detailed description of this metric." + }, + "errorCode":{ + "type": "string", + "description": "'Success' or the error details on query failures for this metric." + }, "unit": { "$ref": "#/definitions/Unit", "description": "the unit of the metric." From 1ef8a24adfc1594be9df951532cac48039733d48 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:04:42 -0700 Subject: [PATCH 10/24] Remove extra forward slash from 2016-03-01 metricDefinitions example --- .../stable/2016-03-01/examples/GetMetricDefinitions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json index 68fd82a7aa48..1de0da4671d3 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitions.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "api-version": "2016-03-01", "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" }, From 66620e012602c30ad2e22fa37a61aa322b1c0800 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:05:44 -0700 Subject: [PATCH 11/24] Remove extra forward slash from 2016-03-01 metricDefinitions filtered example --- .../2016-03-01/examples/GetMetricDefinitionsFiltered.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json index 3362cc71a05a..0cd1e47e978f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/GetMetricDefinitionsFiltered.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "api-version": "2016-03-01", "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192", "$filter": "name.value eq 'RunsStarted' or name.value eq 'RunsSucceeded'" From a4bebf4b1a25f1f1aa96cb6e024b34cc3522fbeb Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:09:35 -0700 Subject: [PATCH 12/24] Remove forward slash from 2016-09-01 metrics example --- .../stable/2016-09-01/examples/GetMetric.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json index fdc5de9cf6d7..51ba066bada4 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetric.json @@ -1,6 +1,6 @@ { "parameters": { - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "api-version": "2016-09-01", "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" }, From 48c5f526496f6d8cc734b55303d2be4ff44814b3 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:10:44 -0700 Subject: [PATCH 13/24] Remove forward slash from 2016-09-01 metrics filtered example --- .../stable/2016-09-01/examples/GetMetricFiltered.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json index df50abd401b4..cf8e3dfe0575 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2016-09-01/examples/GetMetricFiltered.json @@ -1,7 +1,7 @@ { "parameters": { "$filter": "(name.value eq 'RunsStarted') and aggregationType eq 'Total' and startTime eq 2016-11-23 and endTime eq 2016-11-24 and timeGrain eq duration'PT1M'", - "resourceUri": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", + "resourceUri": "subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/andy0802australia/providers/Microsoft.Logic/workflows/andy0803australia", "api-version": "2016-09-01", "subscriptionId": "df602c9c-7aa0-407d-a6fb-eb20c8bd1192" }, From accf974e2670070436632ce5d169ee9e518365ce Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Fri, 16 Apr 2021 19:53:42 -0700 Subject: [PATCH 14/24] Update 2017-05-01-preview example with current values --- .../examples/GetMetric.json | 129 ++++++++++++++---- 1 file changed, 100 insertions(+), 29 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json index 07251092bf57..5d03e5a4e1b8 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetric.json @@ -1,31 +1,75 @@ { "parameters": { - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "resourceUri": "d69f0a10-6508-4026-98b0-eff8f6faaade/resourceGroups/quickpulse-int/providers/Microsoft.Storage/storageAccounts/quickpulseintusscdiag/blobServices/default", + "timespan": "2021-04-16T01:00:00.000Z/2021-04-17T02:00:00.000Z", "metric": "BlobCapacity", "$filter": "BlobType eq '*'", "top": "3", - "orderby": "Average asc", - "aggregation": "Average,count", - "interval": "PT1M", + "orderby": "Average desc", + "aggregation": "average,minimum,maximum", + "interval": "PT6H", "api-version": "2017-05-01-preview" }, "responses": { "200": { "body": { - "cost": 0, - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "interval": "PT1M", + "cost": 1499, + "timespan": "2021-04-16T01:00:00Z/2021-04-17T02:00:00Z", + "interval": "PT6H", "value": [ { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "id": "/subscriptions/d69f0a10-6508-4026-98b0-eff8f6faaade/resourceGroups/quickpulse-int/providers/Microsoft.Storage/storageAccounts/quickpulseintusscdiag/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", "type": "Microsoft.Insights/metrics", "name": { "value": "BlobCapacity", "localizedValue": "Blob Capacity" }, + "displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.", "unit": "Bytes", "timeseries": [ + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "BlockBlob" + } + ], + "data": [ + { + "timeStamp": "2021-04-16T01:00:00Z", + "average": 35492299169.0, + "minimum": 35492299169.0, + "maximum": 35492299169.0 + }, + { + "timeStamp": "2021-04-16T07:00:00Z", + "average": 35492299169.0, + "minimum": 35492299169.0, + "maximum": 35492299169.0 + }, + { + "timeStamp": "2021-04-16T13:00:00Z", + "average": 35492299169.0, + "minimum": 35492299169.0, + "maximum": 35492299169.0 + }, + { + "timeStamp": "2021-04-16T19:00:00Z", + "average": 35492299169.0, + "minimum": 35492299169.0, + "maximum": 35492299169.0 + }, + { + "timeStamp": "2021-04-17T01:00:00Z", + "average": 35492299169.0, + "minimum": 35492299169.0, + "maximum": 35492299169.0 + } + ] + }, { "metadatavalues": [ { @@ -38,21 +82,34 @@ ], "data": [ { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T01:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 + }, + { + "timeStamp": "2021-04-16T07:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T13:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T19:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 0.0 + "timeStamp": "2021-04-17T01:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 } ] }, @@ -63,30 +120,44 @@ "value": "blobtype", "localizedValue": "blobtype" }, - "value": "BlockBlob" + "value": "Azure Data Lake Storage" } ], "data": [ { - "timeStamp": "2017-04-14T02:20:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T01:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 + }, + { + "timeStamp": "2021-04-16T07:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:21:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T13:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:22:00Z", - "count": 0.0 + "timeStamp": "2021-04-16T19:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 }, { - "timeStamp": "2017-04-14T02:23:00Z", - "count": 1.0, - "average": 245.0 + "timeStamp": "2021-04-17T01:00:00Z", + "average": 0.0, + "minimum": 0.0, + "maximum": 0.0 } ] } - ] + ], + "errorCode": "Success" } ] } From cfa94e7e1e8f175c6913f39f464df2e20ef9ed53 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 09:11:15 -0700 Subject: [PATCH 15/24] Update 2017-05-01-preview metric metadata example --- .../examples/GetMetricMetadata.json | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json index 23a9ca8877b0..683ed91a1d59 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json @@ -1,38 +1,36 @@ { "parameters": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", - "metric": "BlobCapacity", - "$filter": "BlobType eq '*'", - "top": "3", - "orderby": "Average asc", - "aggregation": "Average,count", - "interval": "PT1M", + "timespan": "2021-04-18T16:02:54.704Z/2021-04-19T16:02:54.704Z", + "metric": "Availability", + "$filter": "Authentication eq '*'", "resulttype": "metadata", - "resourceUri": "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default", + "resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv", "api-version": "2017-05-01-preview" }, "responses": { "200": { "body": { - "timespan": "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z", + "timespan": "2021-04-18T16:02:54Z/2021-04-19T16:02:54Z", + "interval": "PT1M", "value": [ { - "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", + "id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/providers/Microsoft.Insights/metrics/Availability", "type": "Microsoft.Insights/metrics", "name": { - "value": "BlobCapacity", - "localizedValue": "Blob Capacity" + "value": "Availability", + "localizedValue": "Availability" }, - "unit": "Bytes", + "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", + "unit": "Percent", "timeseries": [ { "metadatavalues": [ { "name": { - "value": "blobtype", - "localizedValue": "blobtype" + "value": "authentication", + "localizedValue": "authentication" }, - "value": "BlockBlob" + "value": "SAS" } ] }, @@ -40,16 +38,18 @@ "metadatavalues": [ { "name": { - "value": "blobtype", - "localizedValue": "blobtype" + "value": "authentication", + "localizedValue": "authentication" }, - "value": "PageBlob" + "value": "AccountKey" } ] } ] } - ] + ], + "namespace": "microsoft.storage/storageaccounts", + "resourceregion": "westus2" } } } From 425260706b5c3fe33b9d5a94dc33feb5ff16bc59 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 10:03:18 -0700 Subject: [PATCH 16/24] Remove isMetadataCustom property from example --- ...tMetricDefinitionsApplicationInsights.json | 90 +++++++------------ 1 file changed, 30 insertions(+), 60 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json index bb82ca5a506c..d35d416122eb 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json @@ -67,8 +67,7 @@ "value": "availabilityResult/location", "localizedValue": "Run location" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/count", @@ -133,8 +132,7 @@ "value": "availabilityResult/success", "localizedValue": "Test result" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/duration", @@ -201,8 +199,7 @@ "value": "availabilityResult/success", "localizedValue": "Test result" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/networkDuration", @@ -255,8 +252,7 @@ "timeGrain": "P1D", "retention": "P93D" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/processingDuration", @@ -309,8 +305,7 @@ "timeGrain": "P1D", "retention": "P93D" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/receiveDuration", @@ -363,8 +358,7 @@ "timeGrain": "P1D", "retention": "P93D" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/sendDuration", @@ -417,8 +411,7 @@ "timeGrain": "P1D", "retention": "P93D" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/totalDuration", @@ -471,8 +464,7 @@ "timeGrain": "P1D", "retention": "P93D" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/count", @@ -557,8 +549,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/duration", @@ -645,8 +636,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/failed", @@ -727,8 +717,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/count", @@ -789,8 +778,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/duration", @@ -853,8 +841,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestExecutionTime", @@ -913,8 +900,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsInQueue", @@ -973,8 +959,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsPerSecond", @@ -1033,8 +1018,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/exceptionsPerSecond", @@ -1093,8 +1077,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processIOBytesPerSecond", @@ -1153,8 +1136,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processCpuPercentage", @@ -1213,8 +1195,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processorCpuPercentage", @@ -1273,8 +1254,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/memoryAvailableBytes", @@ -1333,8 +1313,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processPrivateBytes", @@ -1393,8 +1372,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/duration", @@ -1473,8 +1451,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/count", @@ -1551,8 +1528,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/failed", @@ -1625,8 +1601,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/rate", @@ -1703,8 +1678,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/count", @@ -1769,8 +1743,7 @@ "value": "client/type", "localizedValue": "Device type" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/browser", @@ -1827,8 +1800,7 @@ "value": "cloud/roleName", "localizedValue": "Cloud role name" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/server", @@ -1889,8 +1861,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/traces/count", @@ -1959,8 +1930,7 @@ "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } - ], - "isMetadataCustom": false + ] } ] } From c3646fc6530dacb6e90af0839ef9bbf17c562461 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:45:53 -0700 Subject: [PATCH 17/24] Clarified some comments in 2018-01-01 metrics API --- .../Microsoft.Insights/stable/2018-01-01/metrics_API.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json index a61b6aabb391..246f0bbd0b21 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json @@ -220,7 +220,7 @@ "type": "number", "format": "int32", "minimum": 0, - "description": "The integer value representing the cost of the query, for data case." + "description": "The integer value representing the relative cost of the query." }, "timespan": { "type": "string", @@ -233,11 +233,11 @@ }, "namespace": { "type": "string", - "description": "The namespace of the metrics been queried" + "description": "The namespace of the metrics being queried" }, "resourceregion": { "type": "string", - "description": "The region of the resource been queried for metrics." + "description": "The region of the resource being queried for metrics." }, "value": { "type": "array", @@ -292,6 +292,7 @@ "id", "type", "name", + "displayDescription", "unit", "timeseries" ], From fcd2d8a70e0fe7aecdc612c01a100e0b0ad40e34 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:46:43 -0700 Subject: [PATCH 18/24] Fix example in 2018-01-01 metrics metadata API --- .../stable/2018-01-01/examples/GetMetricMetadata.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json index 2d8a21817013..701b3fda5058 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json @@ -26,6 +26,7 @@ "value": "BlobCapacity", "localizedValue": "Blob Capacity" }, + "displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.", "unit": "Bytes", "timeseries": [ { From 416bdaeb66a2dbdaafa81c0979b4c74b6c872255 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:48:23 -0700 Subject: [PATCH 19/24] Fix example and comments in 2017-05-01-preview metrics API --- .../preview/2017-05-01-preview/metrics_API.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json index 78b959d06e46..c9b6252d090d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json @@ -104,6 +104,7 @@ "value": "CpuTime", "localizedValue": "CPU Time" }, + "displayDescription": "CPU Time", "unit": "Seconds", "timeseries": [ { @@ -270,7 +271,7 @@ "type": "number", "format": "int32", "minimum": 0, - "description": "The integer value representing the cost of the query, for data case." + "description": "The integer value representing the relative cost of the query." }, "timespan": { "type": "string", From dc1b96eecb329442171fa1b19a77077ad8f565fa Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:49:25 -0700 Subject: [PATCH 20/24] Update 2017-05-01-preview get metric metradata example --- .../examples/GetMetricMetadata.json | 49 +++++++++++-------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json index 683ed91a1d59..a8e2e3e55a4d 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/GetMetricMetadata.json @@ -1,36 +1,36 @@ { "parameters": { - "timespan": "2021-04-18T16:02:54.704Z/2021-04-19T16:02:54.704Z", - "metric": "Availability", - "$filter": "Authentication eq '*'", + "timespan": "2021-04-18T22:14:26.647Z/2021-04-19T22:14:26.647Z", + "metric": "BlobCount", + "$filter": "BlobType eq '*'", "resulttype": "metadata", - "resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv", + "resourceUri": "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default", "api-version": "2017-05-01-preview" }, "responses": { "200": { "body": { - "timespan": "2021-04-18T16:02:54Z/2021-04-19T16:02:54Z", - "interval": "PT1M", + "timespan": "2021-04-18T22:14:26Z/2021-04-19T22:14:26Z", + "interval": "PT1H", "value": [ { - "id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/providers/Microsoft.Insights/metrics/Availability", + "id": "/subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default/providers/Microsoft.Insights/metrics/BlobCount", "type": "Microsoft.Insights/metrics", "name": { - "value": "Availability", - "localizedValue": "Availability" + "value": "BlobCount", + "localizedValue": "Blob Count" }, - "displayDescription": "The percentage of availability for the storage service or the specified API operation. Availability is calculated by taking the TotalBillableRequests value and dividing it by the number of applicable requests, including those that produced unexpected errors. All unexpected errors result in reduced availability for the storage service or the specified API operation.", - "unit": "Percent", + "displayDescription": "The number of blob objects stored in the storage account.", + "unit": "Count", "timeseries": [ { "metadatavalues": [ { "name": { - "value": "authentication", - "localizedValue": "authentication" + "value": "blobtype", + "localizedValue": "blobtype" }, - "value": "SAS" + "value": "BlockBlob" } ] }, @@ -38,18 +38,27 @@ "metadatavalues": [ { "name": { - "value": "authentication", - "localizedValue": "authentication" + "value": "blobtype", + "localizedValue": "blobtype" }, - "value": "AccountKey" + "value": "PageBlob" + } + ] + }, + { + "metadatavalues": [ + { + "name": { + "value": "blobtype", + "localizedValue": "blobtype" + }, + "value": "Azure Data Lake Storage" } ] } ] } - ], - "namespace": "microsoft.storage/storageaccounts", - "resourceregion": "westus2" + ] } } } From 1a3fbfbfe3627cb12565ccff3e7f8ab439a6fe75 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Tue, 20 Apr 2021 09:45:16 -0700 Subject: [PATCH 21/24] Fix formatting issues with 2017-05-01-preview metrics API --- .../preview/2017-05-01-preview/metrics_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json index c9b6252d090d..d6bd126f6e6f 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/metrics_API.json @@ -315,7 +315,7 @@ "type": "string", "description": "Detailed description of this metric." }, - "errorCode":{ + "errorCode": { "type": "string", "description": "'Success' or the error details on query failures for this metric." }, From ee381e66d1cef9dc7393d02deb3c85d045d55edf Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Tue, 20 Apr 2021 09:48:06 -0700 Subject: [PATCH 22/24] Fix formatting issues with 2017-12-01-preview metricNamespaces API --- .../preview/2017-12-01-preview/metricNamespaces_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json index a97e040caf61..37567b416cb7 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json @@ -107,7 +107,7 @@ "properties": { "id": { "type": "string", - "description": "The ID of the metricNamespace." + "description": "The ID of the metric namespace." }, "type": { "type": "string", From 23649e049476b17b388bf120903d3be3c7474583 Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Tue, 20 Apr 2021 09:49:42 -0700 Subject: [PATCH 23/24] Fix formatting issues with 2018-01-01 metrics API --- .../Microsoft.Insights/stable/2018-01-01/metrics_API.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json index 246f0bbd0b21..8f531f663b66 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json @@ -272,7 +272,7 @@ "type": "string", "description": "Detailed description of this metric." }, - "errorCode":{ + "errorCode": { "type": "string", "description": "'Success' or the error details on query failures for this metric." }, From 869d71994bbbccf8f794933acd9615606749d72e Mon Sep 17 00:00:00 2001 From: Todd King <58755170+ToddKingMSFT@users.noreply.github.com> Date: Tue, 20 Apr 2021 10:20:29 -0700 Subject: [PATCH 24/24] Add displayDescription to 2018-01-01 metrics API example --- .../Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json index 4f9b0f06a527..365713fa1277 100644 --- a/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json +++ b/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json @@ -23,6 +23,7 @@ { "id": "/subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default/providers/Microsoft.Insights/metrics/BlobCapacity", "type": "Microsoft.Insights/metrics", + "displayDescription": "The amount of storage used by the storage account’s Blob service in bytes.", "name": { "value": "BlobCapacity", "localizedValue": "Blob Capacity"