Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3298 from Azure/restapi_auto_monitor/resource-man…
Browse files Browse the repository at this point in the history
…ager

[AutoPR] monitor/resource-manager
  • Loading branch information
Dan Schulte authored Aug 29, 2018
2 parents 97f4ffd + bc9597b commit b901344
Show file tree
Hide file tree
Showing 33 changed files with 32 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* A list of activity log alert actions.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An Activity Log alert condition that is met when all its member conditions
* are met.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The alert rule object for patch operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Autoscale notification.
*
Expand Down
9 changes: 7 additions & 2 deletions lib/services/monitorManagement/lib/models/autoscaleProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Autoscale profile.
*
Expand Down Expand Up @@ -79,6 +77,13 @@ class AutoscaleProfile {
* format.
* @member {object} [recurrence] the repeating times at which this profile
* begins. This element is not used if the FixedDate element is used.
* @member {string} [recurrence.frequency] the recurrence frequency. How
* often the schedule profile should take effect. This value must be Week,
* meaning each week will have the same set of profiles. For example, to set
* a daily schedule, set **schedule** to every day of the week. The frequency
* property specifies that the schedule is repeated weekly. Possible values
* include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month',
* 'Year'
* @member {object} [recurrence.schedule] the scheduling constraints for when
* the profile begins.
* @member {string} [recurrence.schedule.timeZone] the timezone for the hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The autoscale setting object for patch operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a baseline metadata value.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/baselineResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The response to a baseline query.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The response to a calcualte baseline call.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a collection of diagnostic setting category resources.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a collection of alert rule resources.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/eventData.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The Azure event log entries are of type EventData
*
Expand Down
13 changes: 13 additions & 0 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ export interface RecurrentSchedule {
* The repeating times at which this profile begins. This element is not used
* if the FixedDate element is used.
*
* @member {string} frequency the recurrence frequency. How often the schedule
* profile should take effect. This value must be Week, meaning each week will
* have the same set of profiles. For example, to set a daily schedule, set
* **schedule** to every day of the week. The frequency property specifies that
* the schedule is repeated weekly. Possible values include: 'None', 'Second',
* 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'
* @member {object} schedule the scheduling constraints for when the profile
* begins.
* @member {string} [schedule.timeZone] the timezone for the hours of the
Expand Down Expand Up @@ -338,6 +344,7 @@ export interface RecurrentSchedule {
* profile takes effect at.
*/
export interface Recurrence {
frequency: string;
schedule: RecurrentSchedule;
}

Expand Down Expand Up @@ -406,6 +413,12 @@ export interface Recurrence {
* format.
* @member {object} [recurrence] the repeating times at which this profile
* begins. This element is not used if the FixedDate element is used.
* @member {string} [recurrence.frequency] the recurrence frequency. How often
* the schedule profile should take effect. This value must be Week, meaning
* each week will have the same set of profiles. For example, to set a daily
* schedule, set **schedule** to every day of the week. The frequency property
* specifies that the schedule is repeated weekly. Possible values include:
* 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'
* @member {object} [recurrence.schedule] the scheduling constraints for when
* the profile begins.
* @member {string} [recurrence.schedule.timeZone] the timezone for the hours
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The log profile resource for patch operations.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/logSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Part of MultiTenantDiagnosticSettings. Specifies the settings for a
* particular log.
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/metadataValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a metric metadata value.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The result data of a query.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The metric alert resource for patch operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An alert status.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Represents a collection of alert rule resources.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/metricCriteria.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Criterion to filter metrics.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/metricDefinition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Metric definition class specifies the metadata for a metric.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/metricSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Part of MultiTenantDiagnosticSettings. Specifies the settings for a
* particular metric.
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Microsoft Insights API operation definition.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Result of the request to list Microsoft.Insights operations. It contains a
* list of operations and a URL link to get the next set of results.
Expand Down
14 changes: 9 additions & 5 deletions lib/services/monitorManagement/lib/models/recurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The repeating times at which this profile begins. This element is not used
* if the FixedDate element is used.
Expand All @@ -20,6 +18,13 @@ const models = require('./index');
class Recurrence {
/**
* Create a Recurrence.
* @member {string} frequency the recurrence frequency. How often the
* schedule profile should take effect. This value must be Week, meaning each
* week will have the same set of profiles. For example, to set a daily
* schedule, set **schedule** to every day of the week. The frequency
* property specifies that the schedule is repeated weekly. Possible values
* include: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month',
* 'Year'
* @member {object} schedule the scheduling constraints for when the profile
* begins.
* @member {string} [schedule.timeZone] the timezone for the hours of the
Expand Down Expand Up @@ -87,11 +92,10 @@ class Recurrence {
modelProperties: {
frequency: {
required: true,
isConstant: true,
serializedName: 'frequency',
defaultValue: 'Week',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' ]
}
},
schedule: {
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The response to a metrics query.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/ruleCondition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The condition that results in the alert rule being activated.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/scaleRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* A rule that provide the triggers and parameters for the scaling action.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* A time series result type. The discriminator value is always TimeSeries in
* this case.
Expand Down
2 changes: 0 additions & 2 deletions lib/services/monitorManagement/lib/models/triggerCondition.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The condition that results in the Log Search rule.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/services/monitorManagement/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/services/monitorManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-arm-monitor",
"author": "Microsoft Corporation",
"description": "MonitorManagementClient Library with typescript type definitions for node",
"version": "3.0.0",
"version": "4.0.0",
"dependencies": {
"ms-rest": "^2.3.3",
"ms-rest-azure": "^2.5.5"
Expand All @@ -14,7 +14,7 @@
"license": "MIT",
"main": "./lib/monitorManagementClient.js",
"types": "./lib/monitorManagementClient.d.ts",
"homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/monitorManagement",
"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"
Expand Down

0 comments on commit b901344

Please sign in to comment.