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 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from a2ed141f095adf20aeb11d3bd796d5906fce4f6b (#3680)
Update sqr documentation to include LogToMetricAction
- Loading branch information
1 parent
a84b998
commit a28a4c1
Showing
9 changed files
with
300 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Specifies the criteria for converting log to metric. | ||
* | ||
*/ | ||
class Criteria { | ||
/** | ||
* Create a Criteria. | ||
* @member {string} metricName Name of the metric | ||
* @member {array} [dimensions] List of Dimensions for creating metric | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of Criteria | ||
* | ||
* @returns {object} metadata of Criteria | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Criteria', | ||
type: { | ||
name: 'Composite', | ||
className: 'Criteria', | ||
modelProperties: { | ||
metricName: { | ||
required: true, | ||
serializedName: 'metricName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
dimensions: { | ||
required: false, | ||
serializedName: 'dimensions', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'DimensionElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'Dimension' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = Criteria; |
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,76 @@ | ||
/* | ||
* 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'; | ||
|
||
/** | ||
* Specifies the criteria for converting log to metric. | ||
* | ||
*/ | ||
class Dimension { | ||
/** | ||
* Create a Dimension. | ||
* @member {string} name Name of the dimension | ||
* @member {array} values List of dimension values | ||
*/ | ||
constructor() { | ||
} | ||
|
||
/** | ||
* Defines the metadata of Dimension | ||
* | ||
* @returns {object} metadata of Dimension | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Dimension', | ||
type: { | ||
name: 'Composite', | ||
className: 'Dimension', | ||
modelProperties: { | ||
name: { | ||
required: true, | ||
serializedName: 'name', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
operator: { | ||
required: true, | ||
isConstant: true, | ||
serializedName: 'operator', | ||
defaultValue: 'Include', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
values: { | ||
required: true, | ||
serializedName: 'values', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = Dimension; |
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
73 changes: 73 additions & 0 deletions
73
lib/services/monitorManagement/lib/models/logToMetricAction.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,73 @@ | ||
/* | ||
* 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'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Specifiy action need to be taken when rule type is converting log to metric | ||
* | ||
* @extends models['Action'] | ||
*/ | ||
class LogToMetricAction extends models['Action'] { | ||
/** | ||
* Create a LogToMetricAction. | ||
* @member {object} criteria Severity of the alert | ||
* @member {string} [criteria.metricName] Name of the metric | ||
* @member {array} [criteria.dimensions] List of Dimensions for creating | ||
* metric | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of LogToMetricAction | ||
* | ||
* @returns {object} metadata of LogToMetricAction | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'odata.type', | ||
clientName: 'odatatype' | ||
}, | ||
uberParent: 'Action', | ||
className: 'LogToMetricAction', | ||
modelProperties: { | ||
odatatype: { | ||
required: true, | ||
serializedName: 'odata\\.type', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
criteria: { | ||
required: true, | ||
serializedName: 'criteria', | ||
type: { | ||
name: 'Composite', | ||
className: 'Criteria' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = LogToMetricAction; |
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
Oops, something went wrong.