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
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
2 changes: 0 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
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
53 changes: 49 additions & 4 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2173,8 +2173,11 @@ export interface MetricDimension {
* @member {string} name Name of the criteria.
* @member {string} metricName Name of the metric.
* @member {string} [metricNamespace] Namespace of the metric.
* @member {object} operator the criteria operator.
* @member {object} timeAggregation the criteria time aggregation types.
* @member {string} operator the criteria operator. Possible values include:
* 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
* 'LessThanOrEqual'
* @member {string} timeAggregation the criteria time aggregation types.
* Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'
* @member {number} threshold the criteria threshold value that activates the
* alert.
* @member {array} [dimensions] List of dimension conditions.
Expand All @@ -2183,8 +2186,8 @@ export interface MetricCriteria {
name: string;
metricName: string;
metricNamespace?: string;
operator: any;
timeAggregation: any;
operator: string;
timeAggregation: string;
threshold: number;
dimensions?: MetricDimension[];
}
Expand Down Expand Up @@ -2419,6 +2422,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 +2576,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
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
13 changes: 7 additions & 6 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 All @@ -22,8 +20,11 @@ class MetricCriteria {
* @member {string} name Name of the criteria.
* @member {string} metricName Name of the metric.
* @member {string} [metricNamespace] Namespace of the metric.
* @member {object} operator the criteria operator.
* @member {object} timeAggregation the criteria time aggregation types.
* @member {string} operator the criteria operator. Possible values include:
* 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
* 'LessThanOrEqual'
* @member {string} timeAggregation the criteria time aggregation types.
* Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'
* @member {number} threshold the criteria threshold value that activates the
* alert.
* @member {array} [dimensions] List of dimension conditions.
Expand Down Expand Up @@ -70,14 +71,14 @@ class MetricCriteria {
required: true,
serializedName: 'operator',
type: {
name: 'Object'
name: 'String'
}
},
timeAggregation: {
required: true,
serializedName: 'timeAggregation',
type: {
name: 'Object'
name: 'String'
}
},
threshold: {
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
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;
Loading