class Azure::Monitor::Mgmt::V2018_04_16::Models::LogMetricTrigger

A log metrics trigger descriptor.

Attributes

metric_column[RW]

@return [String] Evaluation of metric on a particular column

metric_trigger_type[RW]

@return [MetricTriggerType] Metric Trigger Type - 'Consecutive' or 'Total'. Possible values include: 'Consecutive', 'Total'

threshold[RW]

@return [Float] The threshold of the metric trigger.

threshold_operator[RW]

@return [ConditionalOperator] Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include: 'GreaterThan', 'LessThan', 'Equal'

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LogMetricTrigger',
    type: {
      name: 'Composite',
      class_name: 'LogMetricTrigger',
      model_properties: {
        threshold_operator: {
          client_side_validation: true,
          required: false,
          serialized_name: 'thresholdOperator',
          type: {
            name: 'String'
          }
        },
        threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'threshold',
          type: {
            name: 'Double'
          }
        },
        metric_trigger_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'metricTriggerType',
          type: {
            name: 'String'
          }
        },
        metric_column: {
          client_side_validation: true,
          required: false,
          serialized_name: 'metricColumn',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end