From 8e51a22a8b6a8633679a699a365c4a15f06b35b3 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 25 Mar 2019 06:26:03 +0000 Subject: [PATCH] Generated from d33c2e897124c07ae2896600c2215ae3717e74ba #5326 Fix the criteria definition --- lib/services/monitorManagement/README.md | 3 +-- .../monitorManagement/lib/models/index.d.ts | 4 ++-- .../lib/models/logToMetricAction.js | 16 ++++++++++------ lib/services/monitorManagement/package.json | 5 +---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/services/monitorManagement/README.md b/lib/services/monitorManagement/README.md index 1baa1c6b0a..c6cb00e87a 100644 --- a/lib/services/monitorManagement/README.md +++ b/lib/services/monitorManagement/README.md @@ -3,8 +3,7 @@ uid: azure-arm-monitor summary: *content --- -**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://www.npmjs.com/package/@azure/arm-monitor) which works on Node.js and browsers.** -**See https://aka.ms/azure-sdk-for-js-migration to learn more.** +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** ## Microsoft Azure SDK for Node.js - MonitorManagementClient This project provides a Node.js package for accessing Azure. Right now it supports: diff --git a/lib/services/monitorManagement/lib/models/index.d.ts b/lib/services/monitorManagement/lib/models/index.d.ts index dc3a028875..c443a08326 100644 --- a/lib/services/monitorManagement/lib/models/index.d.ts +++ b/lib/services/monitorManagement/lib/models/index.d.ts @@ -2359,9 +2359,9 @@ export interface Criteria { */ export interface LogToMetricAction extends Action { /** - * Severity of the alert + * Criteria of Metric */ - criteria: Criteria; + criteria: Criteria[]; } /** diff --git a/lib/services/monitorManagement/lib/models/logToMetricAction.js b/lib/services/monitorManagement/lib/models/logToMetricAction.js index d49d198836..86f38b795f 100644 --- a/lib/services/monitorManagement/lib/models/logToMetricAction.js +++ b/lib/services/monitorManagement/lib/models/logToMetricAction.js @@ -20,10 +20,7 @@ const models = require('./index'); class LogToMetricAction extends models['Action'] { /** * Create a LogToMetricAction. - * @property {object} criteria Severity of the alert - * @property {string} [criteria.metricName] Name of the metric - * @property {array} [criteria.dimensions] List of Dimensions for creating - * metric + * @property {array} criteria Criteria of Metric */ constructor() { super(); @@ -60,8 +57,15 @@ class LogToMetricAction extends models['Action'] { required: true, serializedName: 'criteria', type: { - name: 'Composite', - className: 'Criteria' + name: 'Sequence', + element: { + required: false, + serializedName: 'CriteriaElementType', + type: { + name: 'Composite', + className: 'Criteria' + } + } } } } diff --git a/lib/services/monitorManagement/package.json b/lib/services/monitorManagement/package.json index 7c3fca7af4..751cc2259b 100644 --- a/lib/services/monitorManagement/package.json +++ b/lib/services/monitorManagement/package.json @@ -4,7 +4,7 @@ "description": "MonitorManagementClient Library with typescript type definitions for node", "version": "5.4.0", "dependencies": { - "ms-rest": "^2.5.0", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, "keywords": [ @@ -21,8 +21,5 @@ }, "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" - }, - "scripts": { - "postinstall": "node .scripts/postinstall.js" } }