class Azure::ARM::Insights::Models::AlertRuleResource

The alert rule resource.

Attributes

actions[RW]

@return [Array<RuleAction>] the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.

alert_rule_resource_name[RW]

@return [String] the name of the alert rule.

condition[RW]

@return [RuleCondition] the condition that results in the alert rule being activated.

description[RW]

@return [String] the description of the alert rule that will be included in the alert email.

is_enabled[RW]

@return [Boolean] the flag that indicates whether the alert rule is enabled.

last_updated_time[RW]

@return [DateTime] Last time the rule was updated in ISO8601 format.

Public Class Methods

mapper() click to toggle source

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

# File lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb, line 43
def self.mapper()
  {
    required: false,
    serialized_name: 'AlertRuleResource',
    type: {
      name: 'Composite',
      class_name: 'AlertRuleResource',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        alert_rule_resource_name: {
          required: true,
          serialized_name: 'properties.name',
          type: {
            name: 'String'
          }
        },
        description: {
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        is_enabled: {
          required: true,
          serialized_name: 'properties.isEnabled',
          type: {
            name: 'Boolean'
          }
        },
        condition: {
          required: false,
          serialized_name: 'properties.condition',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'odata.type',
            uber_parent: 'RuleCondition',
            class_name: 'RuleCondition'
          }
        },
        actions: {
          required: false,
          serialized_name: 'properties.actions',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'RuleActionElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'odata.type',
                  uber_parent: 'RuleAction',
                  class_name: 'RuleAction'
                }
            }
          }
        },
        last_updated_time: {
          required: false,
          read_only: true,
          serialized_name: 'properties.lastUpdatedTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end