UNPKG

azure-arm-insights

Version:

Microsoft Azure Insights Management Client Library for node

84 lines (78 loc) 2.17 kB
/* * 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'); /** * @class * Initializes a new instance of the RuleEmailAction class. * @constructor * Specifies the action to send email when the rule condition is evaluated. The * discriminator is always RuleEmailAction in this case. * * @member {boolean} [sendToServiceOwners] Whether the administrators (service * and co-adiminstrators) of the service should be notified when the alert is * activated. * * @member {array} [customEmails] the list of administrator's custom email * addresses notifiy of the activation of the alert. * */ class RuleEmailAction extends models['RuleAction'] { constructor() { super(); } /** * Defines the metadata of RuleEmailAction * * @returns {object} metadata of RuleEmailAction * */ mapper() { return { required: false, serializedName: 'Microsoft.Azure.Management.Insights.Models.RuleEmailAction', type: { name: 'Composite', className: 'RuleEmailAction', modelProperties: { odatatype: { required: true, serializedName: 'odata\\.type', type: { name: 'String' } }, sendToServiceOwners: { required: false, serializedName: 'sendToServiceOwners', type: { name: 'Boolean' } }, customEmails: { required: false, serializedName: 'customEmails', type: { name: 'Sequence', element: { required: false, serializedName: 'StringElementType', type: { name: 'String' } } } } } } }; } } module.exports = RuleEmailAction;