class Azure::Monitor::Mgmt::V2018_03_01::Models::MetricAlertCriteria

The rule criteria that defines the conditions of the alert rule.

Attributes

additional_properties[RW]

@return Unmatched properties from the message are deserialized this collection

odatatype[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricAlertCriteria',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'odata.type',
      uber_parent: 'MetricAlertCriteria',
      class_name: 'MetricAlertCriteria',
      model_properties: {
        additional_properties: {
          client_side_validation: true,
          required: false,
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb, line 20
def initialize
  @odatatype = "MetricAlertCriteria"
end