From c6491ab5d40a117cc9a6c09b0cd27137236706fa Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 19 Sep 2018 10:11:14 -0700 Subject: [PATCH 1/3] [AutoPR monitor/resource-manager] Add missing enum for aggregation type (#3620) * Generated from 94966a030267d7db87fc3d2440dffbe83908781a Add missing enum for aggregation type * Generated from 86adb05ccf2d2e4b98d1f7f08fba9aa8ec794405 Update enum order --- lib/services/monitorManagement/lib/models/index.d.ts | 5 +++-- lib/services/monitorManagement/lib/models/metricTrigger.js | 5 +++-- lib/services/monitorManagement/lib/models/scaleRule.js | 2 +- lib/services/monitorManagement/package.json | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/services/monitorManagement/lib/models/index.d.ts b/lib/services/monitorManagement/lib/models/index.d.ts index a004e3aa8f..b77dd1d7aa 100644 --- a/lib/services/monitorManagement/lib/models/index.d.ts +++ b/lib/services/monitorManagement/lib/models/index.d.ts @@ -78,7 +78,8 @@ export interface ScaleCapacity { * hours and 5 minutes. * @member {string} timeAggregation time aggregation type. How the data that is * collected should be combined over time. The default value is Average. - * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count' + * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count', + * 'Last' * @member {string} operator the operator that is used to compare the metric * data and the threshold. Possible values include: 'Equals', 'NotEquals', * 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' @@ -147,7 +148,7 @@ export interface ScaleAction { * @member {string} [metricTrigger.timeAggregation] time aggregation type. How * the data that is collected should be combined over time. The default value * is Average. Possible values include: 'Average', 'Minimum', 'Maximum', - * 'Total', 'Count' + * 'Total', 'Count', 'Last' * @member {string} [metricTrigger.operator] the operator that is used to * compare the metric data and the threshold. Possible values include: * 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', diff --git a/lib/services/monitorManagement/lib/models/metricTrigger.js b/lib/services/monitorManagement/lib/models/metricTrigger.js index 09e76603e5..2da56fd24d 100644 --- a/lib/services/monitorManagement/lib/models/metricTrigger.js +++ b/lib/services/monitorManagement/lib/models/metricTrigger.js @@ -33,7 +33,8 @@ class MetricTrigger { * hours and 5 minutes. * @member {string} timeAggregation time aggregation type. How the data that * is collected should be combined over time. The default value is Average. - * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Count' + * Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', + * 'Count', 'Last' * @member {string} operator the operator that is used to compare the metric * data and the threshold. Possible values include: 'Equals', 'NotEquals', * 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' @@ -98,7 +99,7 @@ class MetricTrigger { serializedName: 'timeAggregation', type: { name: 'Enum', - allowedValues: [ 'Average', 'Minimum', 'Maximum', 'Total', 'Count' ] + allowedValues: [ 'Average', 'Minimum', 'Maximum', 'Total', 'Count', 'Last' ] } }, operator: { diff --git a/lib/services/monitorManagement/lib/models/scaleRule.js b/lib/services/monitorManagement/lib/models/scaleRule.js index beda6ba5a8..5260a6d2db 100644 --- a/lib/services/monitorManagement/lib/models/scaleRule.js +++ b/lib/services/monitorManagement/lib/models/scaleRule.js @@ -37,7 +37,7 @@ class ScaleRule { * @member {string} [metricTrigger.timeAggregation] time aggregation type. * How the data that is collected should be combined over time. The default * value is Average. Possible values include: 'Average', 'Minimum', - * 'Maximum', 'Total', 'Count' + * 'Maximum', 'Total', 'Count', 'Last' * @member {string} [metricTrigger.operator] the operator that is used to * compare the metric data and the threshold. Possible values include: * 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 7d9aa13beb..8ae61a04b3 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/monitorManagementClient.js", "types": "./lib/monitorManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/monitorManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" From e571238200635fa1160ab8543daf57ac00a2143d Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 19 Sep 2018 12:22:57 -0700 Subject: [PATCH 2/3] Regenerate azure-arm-monitor --- lib/services/monitorManagement/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 8ae61a04b3..7d9aa13beb 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/monitorManagementClient.js", "types": "./lib/monitorManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/monitorManagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" From a84b99876f8e1937b614c6d07f7b2025c8e2dc0d Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 19 Sep 2018 12:24:50 -0700 Subject: [PATCH 3/3] Update azure-arm-monitor to 4.1.1 --- lib/services/monitorManagement/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 7d9aa13beb..bcbf89ca5d 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-monitor", "author": "Microsoft Corporation", "description": "MonitorManagementClient Library with typescript type definitions for node", - "version": "4.1.0", + "version": "4.1.1", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"