This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR monitor/resource-manager] Adding patch support for SQR API (#…
…2886) * Generated from f53526896e5c001f79bd46ca892f825172b53abf Merge branch 'master' into patchsupport * Generated from 0fa2c60b9a9e552cdcb523005b2136ae474a4d89 Updated description for queryType Updated description for queryType * Generated from b37d3ace14508e3bc3f87ee29b7f2ad0b7025f67 Resolving multiple model issue Changes - 1. Renamed "MetricTrigger" to "LogMetricTrigger" 2. Aligned "Resources" to other specs * Generated from b37d3ace14508e3bc3f87ee29b7f2ad0b7025f67 Resolving multiple model issue Changes - 1. Renamed "MetricTrigger" to "LogMetricTrigger" 2. Aligned "Resources" to other specs
- Loading branch information
1 parent
ba36e4b
commit 3ccff0d
Showing
12 changed files
with
556 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
lib/services/monitorManagement/lib/models/logMetricTrigger.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Class representing a LogMetricTrigger. | ||
*/ | ||
class LogMetricTrigger { | ||
/** | ||
* Create a LogMetricTrigger. | ||
* @member {string} [thresholdOperator] Evaluation operation for Metric | ||
* -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include: | ||
* 'GreaterThan', 'LessThan', 'Equal' | ||
* @member {number} [threshold] | ||
* @member {string} [metricTriggerType] Metric Trigger Type - 'Consecutive' | ||
* or 'Total'. Possible values include: 'Consecutive', 'Total' | ||
* @member {string} [metricColumn] Evaluation of metric on a particular | ||
* column | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of LogMetricTrigger | ||
* | ||
* @returns {object} metadata of LogMetricTrigger | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'LogMetricTrigger', | ||
type: { | ||
name: 'Composite', | ||
className: 'LogMetricTrigger', | ||
modelProperties: { | ||
thresholdOperator: { | ||
required: false, | ||
serializedName: 'thresholdOperator', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
threshold: { | ||
required: false, | ||
serializedName: 'threshold', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
metricTriggerType: { | ||
required: false, | ||
serializedName: 'metricTriggerType', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
metricColumn: { | ||
required: false, | ||
serializedName: 'metricColumn', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = LogMetricTrigger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
lib/services/monitorManagement/lib/models/logSearchRuleResourcePatch.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* 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 log search rule resource for patch operations. | ||
* | ||
*/ | ||
class LogSearchRuleResourcePatch { | ||
/** | ||
* Create a LogSearchRuleResourcePatch. | ||
* @member {object} [tags] Resource tags | ||
* @member {string} [enabled] The flag which indicates whether the Log Search | ||
* rule is enabled. Value should be true or false. Possible values include: | ||
* 'true', 'false' | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of LogSearchRuleResourcePatch | ||
* | ||
* @returns {object} metadata of LogSearchRuleResourcePatch | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'LogSearchRuleResourcePatch', | ||
type: { | ||
name: 'Composite', | ||
className: 'LogSearchRuleResourcePatch', | ||
modelProperties: { | ||
tags: { | ||
required: false, | ||
serializedName: 'tags', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
enabled: { | ||
required: false, | ||
serializedName: 'properties.enabled', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = LogSearchRuleResourcePatch; |
Oops, something went wrong.