class Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition

A management event rule condition.

Attributes

aggregation[RW]

@return [ManagementEventAggregationCondition] How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.

odatatype[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition',
    type: {
      name: 'Composite',
      class_name: 'ManagementEventRuleCondition',
      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'
          }
        },
        odatatype: {
          client_side_validation: true,
          required: true,
          serialized_name: 'odata\\.type',
          type: {
            name: 'String'
          }
        },
        aggregation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aggregation',
          type: {
            name: 'Composite',
            class_name: 'ManagementEventAggregationCondition'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb, line 16
def initialize
  @odatatype = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
end