class Azure::Monitor::Mgmt::V2016_03_01::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 to notify of the activation of the alert.

odatatype[RW]
send_to_service_owners[RW]

@return [Boolean] Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated.

Private Class Methods

mapper() click to toggle source

Mapper for RuleEmailAction class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_email_action.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleEmailAction',
    type: {
      name: 'Composite',
      class_name: 'RuleEmailAction',
      model_properties: {
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: 'odata\\.type',
          type: {
            name: 'String'
          }
        },
        send_to_service_owners: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sendToServiceOwners',
          type: {
            name: 'Boolean'
          }
        },
        custom_emails: {
          client_side_validation: true,
          required: false,
          serialized_name: 'customEmails',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_email_action.rb, line 17
def initialize
  @odatatype = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
end