class Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition
A rule condition based on a metric crossing a threshold.
Attributes
@return [ConditionOperator] the operator used to compare the data and the threshold. Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'
@return [Float] the threshold value that activates the alert.
@return [TimeAggregationOperator] the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Last'
@return [Duration] the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
Private Class Methods
Mapper for ThresholdRuleCondition
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb, line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition', type: { name: 'Composite', class_name: 'ThresholdRuleCondition', 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' } }, operator: { client_side_validation: true, required: true, serialized_name: 'operator', type: { name: 'Enum', module: 'ConditionOperator' } }, threshold: { client_side_validation: true, required: true, serialized_name: 'threshold', type: { name: 'Double' } }, window_size: { client_side_validation: true, required: false, serialized_name: 'windowSize', type: { name: 'TimeSpan' } }, time_aggregation: { client_side_validation: true, required: false, serialized_name: 'timeAggregation', type: { name: 'Enum', module: 'TimeAggregationOperator' } } } } } end
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb, line 16 def initialize @odatatype = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" end