class Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition

The condition that results in the alert rule being activated.

Attributes

data_source[RW]

@return [RuleDataSource] the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

odatatype[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_condition.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RuleCondition',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'odata.type',
      uber_parent: 'RuleCondition',
      class_name: 'RuleCondition',
      model_properties: {
        data_source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataSource',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'odata.type',
            uber_parent: 'RuleDataSource',
            class_name: 'RuleDataSource'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/rule_condition.rb, line 20
def initialize
  @odatatype = "RuleCondition"
end