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

Commit

Permalink
Generated from 0c826790271a1be2d4af5905ee0eb089b4260feb
Browse files Browse the repository at this point in the history
Merge pull request #1 from abversqr/MinorUpdates

Minor updates
  • Loading branch information
AutorestCI committed May 2, 2018
1 parent d864459 commit ca7bdbc
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 34 deletions.
13 changes: 7 additions & 6 deletions lib/services/monitorManagement/lib/models/alertingAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ class AlertingAction extends models['Action'] {
* Create a AlertingAction.
* @member {string} severity Severity of the alert. Possible values include:
* '0', '1', '2', '3', '4'
* @member {object} aznsAction azns notification group reference.
* @member {array} [aznsAction.actionGroup] Azure Group reference.
* @member {string} [aznsAction.emailSubject] Custom subject for Azns email
* @member {string} [aznsAction.customWebhookPayload] Custom webhook payload
* to be send to azns action group
* @member {object} aznsAction Azure action group reference.
* @member {array} [aznsAction.actionGroup] Azure Action Group reference.
* @member {string} [aznsAction.emailSubject] Custom subject override for all
* email ids in Azure action group
* @member {string} [aznsAction.customWebhookPayload] Custom payload to be
* sent for all webook URI in Azure action group
* @member {number} [throttlingInMin] time (in minutes) for which Alerts
* should be throttled
* should be throttled or suppressed.
* @member {object} trigger The trigger condition that results in the alert
* rule being.
* @member {string} [trigger.thresholdOperator] Evaluation operation for rule
Expand Down
11 changes: 6 additions & 5 deletions lib/services/monitorManagement/lib/models/azNsActionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
'use strict';

/**
* azns notification group
* Azure action group
*
*/
class AzNsActionGroup {
/**
* Create a AzNsActionGroup.
* @member {array} [actionGroup] Azure Group reference.
* @member {string} [emailSubject] Custom subject for Azns email
* @member {string} [customWebhookPayload] Custom webhook payload to be send
* to azns action group
* @member {array} [actionGroup] Azure Action Group reference.
* @member {string} [emailSubject] Custom subject override for all email ids
* in Azure action group
* @member {string} [customWebhookPayload] Custom payload to be sent for all
* webook URI in Azure action group
*/
constructor() {
}
Expand Down
30 changes: 16 additions & 14 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2210,7 +2210,7 @@ export interface MetricAlertSingleResourceMultipleMetricCriteria extends MetricA
*
* @member {string} query Log search query.
* @member {array} [authorizedResources] List of Resource referred into query
* @member {string} datasourceId The resource uri over which log search query
* @member {string} dataSourceId The resource uri over which log search query
* is to be run.
* @member {string} [queryType] Set value to ResultCount if query should be
* returning search result count. Set it to Number if its a metric query.
Expand All @@ -2219,7 +2219,7 @@ export interface MetricAlertSingleResourceMultipleMetricCriteria extends MetricA
export interface Source {
query: string;
authorizedResources?: string[];
datasourceId: string;
dataSourceId: string;
queryType?: string;
}

Expand Down Expand Up @@ -2258,7 +2258,7 @@ export interface Schedule {
* @member {string} [source.query] Log search query.
* @member {array} [source.authorizedResources] List of Resource referred into
* query
* @member {string} [source.datasourceId] The resource uri over which log
* @member {string} [source.dataSourceId] The resource uri over which log
* search query is to be run.
* @member {string} [source.queryType] Set value to ResultCount if query should
* be returning search result count. Set it to Number if its a metric query.
Expand Down Expand Up @@ -2339,12 +2339,13 @@ export interface TriggerCondition {
* @class
* Initializes a new instance of the AzNsActionGroup class.
* @constructor
* azns notification group
* Azure action group
*
* @member {array} [actionGroup] Azure Group reference.
* @member {string} [emailSubject] Custom subject for Azns email
* @member {string} [customWebhookPayload] Custom webhook payload to be send to
* azns action group
* @member {array} [actionGroup] Azure Action Group reference.
* @member {string} [emailSubject] Custom subject override for all email ids in
* Azure action group
* @member {string} [customWebhookPayload] Custom payload to be sent for all
* webook URI in Azure action group
*/
export interface AzNsActionGroup {
actionGroup?: string[];
Expand All @@ -2360,13 +2361,14 @@ export interface AzNsActionGroup {
*
* @member {string} severity Severity of the alert. Possible values include:
* '0', '1', '2', '3', '4'
* @member {object} aznsAction azns notification group reference.
* @member {array} [aznsAction.actionGroup] Azure Group reference.
* @member {string} [aznsAction.emailSubject] Custom subject for Azns email
* @member {string} [aznsAction.customWebhookPayload] Custom webhook payload to
* be send to azns action group
* @member {object} aznsAction Azure action group reference.
* @member {array} [aznsAction.actionGroup] Azure Action Group reference.
* @member {string} [aznsAction.emailSubject] Custom subject override for all
* email ids in Azure action group
* @member {string} [aznsAction.customWebhookPayload] Custom payload to be sent
* for all webook URI in Azure action group
* @member {number} [throttlingInMin] time (in minutes) for which Alerts should
* be throttled
* be throttled or suppressed.
* @member {object} trigger The trigger condition that results in the alert
* rule being.
* @member {string} [trigger.thresholdOperator] Evaluation operation for rule -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LogSearchRuleResource extends models['Resource'] {
* @member {string} [source.query] Log search query.
* @member {array} [source.authorizedResources] List of Resource referred
* into query
* @member {string} [source.datasourceId] The resource uri over which log
* @member {string} [source.dataSourceId] The resource uri over which log
* search query is to be run.
* @member {string} [source.queryType] Set value to ResultCount if query
* should be returning search result count. Set it to Number if its a metric
Expand Down
6 changes: 3 additions & 3 deletions lib/services/monitorManagement/lib/models/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Source {
* @member {string} query Log search query.
* @member {array} [authorizedResources] List of Resource referred into
* query
* @member {string} datasourceId The resource uri over which log search query
* @member {string} dataSourceId The resource uri over which log search query
* is to be run.
* @member {string} [queryType] Set value to ResultCount if query should be
* returning search result count. Set it to Number if its a metric query.
Expand Down Expand Up @@ -64,9 +64,9 @@ class Source {
}
}
},
datasourceId: {
dataSourceId: {
required: true,
serializedName: 'datasourceId',
serializedName: 'dataSourceId',
type: {
name: 'String'
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/monitorManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4318,7 +4318,7 @@ export interface ScheduledQueryRules {
* @param {array} [parameters.source.authorizedResources] List of Resource
* referred into query
*
* @param {string} parameters.source.datasourceId The resource uri over which
* @param {string} parameters.source.dataSourceId The resource uri over which
* log search query is to be run.
*
* @param {string} [parameters.source.queryType] Set value to ResultCount if
Expand Down Expand Up @@ -4386,7 +4386,7 @@ export interface ScheduledQueryRules {
* @param {array} [parameters.source.authorizedResources] List of Resource
* referred into query
*
* @param {string} parameters.source.datasourceId The resource uri over which
* @param {string} parameters.source.dataSourceId The resource uri over which
* log search query is to be run.
*
* @param {string} [parameters.source.queryType] Set value to ResultCount if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const WebResource = msRest.WebResource;
* @param {array} [parameters.source.authorizedResources] List of Resource
* referred into query
*
* @param {string} parameters.source.datasourceId The resource uri over which
* @param {string} parameters.source.dataSourceId The resource uri over which
* log search query is to be run.
*
* @param {string} [parameters.source.queryType] Set value to ResultCount if
Expand Down Expand Up @@ -843,7 +843,7 @@ class ScheduledQueryRules {
* @param {array} [parameters.source.authorizedResources] List of Resource
* referred into query
*
* @param {string} parameters.source.datasourceId The resource uri over which
* @param {string} parameters.source.dataSourceId The resource uri over which
* log search query is to be run.
*
* @param {string} [parameters.source.queryType] Set value to ResultCount if
Expand Down Expand Up @@ -923,7 +923,7 @@ class ScheduledQueryRules {
* @param {array} [parameters.source.authorizedResources] List of Resource
* referred into query
*
* @param {string} parameters.source.datasourceId The resource uri over which
* @param {string} parameters.source.dataSourceId The resource uri over which
* log search query is to be run.
*
* @param {string} [parameters.source.queryType] Set value to ResultCount if
Expand Down

0 comments on commit ca7bdbc

Please sign in to comment.