Class: Azure::ARM::Monitor::Models::RuleCondition

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_monitor/models/rule_condition.rb

Overview

The condition that results in the alert rule being activated.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRuleCondition

Returns a new instance of RuleCondition.


21
22
23
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 21

def initialize
  @odata.type = "RuleCondition"
end

Instance Attribute Details

#data_sourceRuleDataSource

data. For this type dataSource will always be of type RuleMetricDataSource.

Returns:


30
31
32
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 30

def data_source
  @data_source
end

Class Method Details

.mapperObject

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


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 37

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