class Azure::Monitor::Mgmt::V2018_04_16::Models::TriggerCondition
The condition that results in the Log Search rule.
Attributes
metric_trigger[RW]
@return [LogMetricTrigger] Trigger condition for metric query rule
threshold[RW]
@return [Float] Result or count threshold based on which rule should be triggered.
threshold_operator[RW]
@return [ConditionalOperator] Evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan', 'LessThan', 'Equal'
Private Class Methods
mapper()
click to toggle source
Mapper for TriggerCondition
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb, line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'TriggerCondition', type: { name: 'Composite', class_name: 'TriggerCondition', model_properties: { threshold_operator: { client_side_validation: true, required: true, serialized_name: 'thresholdOperator', type: { name: 'String' } }, threshold: { client_side_validation: true, required: true, serialized_name: 'threshold', type: { name: 'Double' } }, metric_trigger: { client_side_validation: true, required: false, serialized_name: 'metricTrigger', type: { name: 'Composite', class_name: 'LogMetricTrigger' } } } } } end