Class: Azure::ARM::Insights::Models::RuleAction

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_insights/models/rule_action.rb

Overview

The action that is performed when the alert rule becomes active, and when an alert condition is resolved.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRuleAction

Returns a new instance of RuleAction.



20
21
22
# File 'lib/generated/azure_mgmt_insights/models/rule_action.rb', line 20

def initialize
  @odata.type = "RuleAction"
end

Class Method Details

.mapperObject

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



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/generated/azure_mgmt_insights/models/rule_action.rb', line 31

def self.mapper()
  {
    required: false,
    serialized_name: 'RuleAction',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'odata.type',
      uber_parent: 'RuleAction',
      class_name: 'RuleAction',
      model_properties: {
      }
    }
  }
end