class Azure::ARM::Insights::Models::RuleEmailAction
Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction
in this case.
Attributes
custom_emails[RW]
@return [Array<String>] the list of administrator’s custom email addresses notifiy of the activation of the alert.
odata[RW]
send_to_service_owners[RW]
@return [Boolean] Whether the administrators (service and co-adiminstrators) of the service should be notified when the alert is activated.
Public Class Methods
mapper()
click to toggle source
Mapper for RuleEmailAction
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/generated/azure_mgmt_insights/models/rule_email_action.rb, line 37 def self.mapper() { required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleEmailAction', type: { name: 'Composite', class_name: 'RuleEmailAction', model_properties: { odata.type: { required: true, serialized_name: 'odata\\.type', type: { name: 'String' } }, send_to_service_owners: { required: false, serialized_name: 'sendToServiceOwners', type: { name: 'Boolean' } }, custom_emails: { required: false, serialized_name: 'customEmails', type: { name: 'Sequence', element: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end
new()
click to toggle source
# File lib/generated/azure_mgmt_insights/models/rule_email_action.rb, line 17 def initialize @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" end