Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions lib/services/monitorManagement/lib/models/armRoleReceiver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* An arm role receiver.
*
*/
class ArmRoleReceiver {
/**
* Create a ArmRoleReceiver.
* @member {string} name The name of the arm role receiver. Names must be
* unique across all receivers within an action group.
* @member {string} roleId The arm role id.
*/
constructor() {
}

/**
* Defines the metadata of ArmRoleReceiver
*
* @returns {object} metadata of ArmRoleReceiver
*
*/
mapper() {
return {
required: false,
serializedName: 'ArmRoleReceiver',
type: {
name: 'Composite',
className: 'ArmRoleReceiver',
modelProperties: {
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
roleId: {
required: true,
serializedName: 'roleId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ArmRoleReceiver;
47 changes: 45 additions & 2 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -2419,6 +2420,38 @@ export interface AlertingAction extends Action {
trigger: TriggerCondition;
}

/**
* @class
* Initializes a new instance of the MetricNamespaceName class.
* @constructor
* The fully qualified metric namespace name.
*
* @member {string} [metricNamespaceName] The metric namespace name.
*/
export interface MetricNamespaceName {
metricNamespaceName?: string;
}

/**
* @class
* Initializes a new instance of the MetricNamespace class.
* @constructor
* Metric namespace class specifies the metadata for a metric namespace.
*
* @member {string} [id] The ID of the metricNamespace.
* @member {string} [type] The type of the namespace.
* @member {string} [name] The name of the namespace.
* @member {object} [properties] Properties which include the fully qualified
* namespace name.
* @member {string} [properties.metricNamespaceName] The metric namespace name.
*/
export interface MetricNamespace {
id?: string;
type?: string;
name?: string;
properties?: MetricNamespaceName;
}


/**
* @class
Expand Down Expand Up @@ -2541,3 +2574,13 @@ export interface MetricAlertResourceCollection extends Array<MetricAlertResource
*/
export interface LogSearchRuleResourceCollection extends Array<LogSearchRuleResource> {
}

/**
* @class
* Initializes a new instance of the MetricNamespaceCollection class.
* @constructor
* Represents collection of metric namespaces.
*
*/
export interface MetricNamespaceCollection extends Array<MetricNamespace> {
}
3 changes: 3 additions & 0 deletions lib/services/monitorManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ exports.LogMetricTrigger = require('./logMetricTrigger');
exports.TriggerCondition = require('./triggerCondition');
exports.AzNsActionGroup = require('./azNsActionGroup');
exports.AlertingAction = require('./alertingAction');
exports.MetricNamespaceName = require('./metricNamespaceName');
exports.MetricNamespace = require('./metricNamespace');
exports.AutoscaleSettingResourceCollection = require('./autoscaleSettingResourceCollection');
exports.IncidentListResult = require('./incidentListResult');
exports.AlertRuleResourceCollection = require('./alertRuleResourceCollection');
Expand All @@ -125,6 +127,7 @@ exports.EventCategoryCollection = require('./eventCategoryCollection');
exports.MetricDefinitionCollection = require('./metricDefinitionCollection');
exports.MetricAlertResourceCollection = require('./metricAlertResourceCollection');
exports.LogSearchRuleResourceCollection = require('./logSearchRuleResourceCollection');
exports.MetricNamespaceCollection = require('./metricNamespaceCollection');
exports.discriminators = {
'RuleDataSource' : exports.RuleDataSource,
'RuleCondition' : exports.RuleCondition,
Expand Down
80 changes: 80 additions & 0 deletions lib/services/monitorManagement/lib/models/metricNamespace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Metric namespace class specifies the metadata for a metric namespace.
*
*/
class MetricNamespace {
/**
* Create a MetricNamespace.
* @member {string} [id] The ID of the metricNamespace.
* @member {string} [type] The type of the namespace.
* @member {string} [name] The name of the namespace.
* @member {object} [properties] Properties which include the fully qualified
* namespace name.
* @member {string} [properties.metricNamespaceName] The metric namespace
* name.
*/
constructor() {
}

/**
* Defines the metadata of MetricNamespace
*
* @returns {object} metadata of MetricNamespace
*
*/
mapper() {
return {
required: false,
serializedName: 'MetricNamespace',
type: {
name: 'Composite',
className: 'MetricNamespace',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'properties',
type: {
name: 'Composite',
className: 'MetricNamespaceName'
}
}
}
}
};
}
}

module.exports = MetricNamespace;
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Represents collection of metric namespaces.
*/
class MetricNamespaceCollection extends Array {
/**
* Create a MetricNamespaceCollection.
*/
constructor() {
super();
}

/**
* Defines the metadata of MetricNamespaceCollection
*
* @returns {object} metadata of MetricNamespaceCollection
*
*/
mapper() {
return {
required: false,
serializedName: 'MetricNamespaceCollection',
type: {
name: 'Composite',
className: 'MetricNamespaceCollection',
modelProperties: {
value: {
required: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'MetricNamespaceElementType',
type: {
name: 'Composite',
className: 'MetricNamespace'
}
}
}
}
}
}
};
}
}

module.exports = MetricNamespaceCollection;
52 changes: 52 additions & 0 deletions lib/services/monitorManagement/lib/models/metricNamespaceName.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* The fully qualified metric namespace name.
*
*/
class MetricNamespaceName {
/**
* Create a MetricNamespaceName.
* @member {string} [metricNamespaceName] The metric namespace name.
*/
constructor() {
}

/**
* Defines the metadata of MetricNamespaceName
*
* @returns {object} metadata of MetricNamespaceName
*
*/
mapper() {
return {
required: false,
serializedName: 'MetricNamespaceName',
type: {
name: 'Composite',
className: 'MetricNamespaceName',
modelProperties: {
metricNamespaceName: {
required: false,
serializedName: 'metricNamespaceName',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = MetricNamespaceName;
5 changes: 3 additions & 2 deletions lib/services/monitorManagement/lib/models/metricTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/monitorManagement/lib/models/scaleRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class MonitorManagementClient extends AzureServiceClient {
metricAlerts: operations.MetricAlerts;
metricAlertsStatus: operations.MetricAlertsStatus;
scheduledQueryRules: operations.ScheduledQueryRules;
metricNamespaces: operations.MetricNamespaces;
}

export { MonitorManagementClient, models as MonitorManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class MonitorManagementClient extends ServiceClient {
this.metricAlerts = new operations.MetricAlerts(this);
this.metricAlertsStatus = new operations.MetricAlertsStatus(this);
this.scheduledQueryRules = new operations.ScheduledQueryRules(this);
this.metricNamespaces = new operations.MetricNamespaces(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Loading