class Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition
A rule condition based on a certain number of locations failing.
Attributes
failed_location_count[RW]
@return [Integer] the number of locations that must fail to activate the alert.
odatatype[RW]
window_size[RW]
@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()
click to toggle source
Mapper for LocationThresholdRuleCondition
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb, line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition', type: { name: 'Composite', class_name: 'LocationThresholdRuleCondition', 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' } }, window_size: { client_side_validation: true, required: false, serialized_name: 'windowSize', type: { name: 'TimeSpan' } }, failed_location_count: { client_side_validation: true, required: true, serialized_name: 'failedLocationCount', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end
new()
click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb, line 16 def initialize @odatatype = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" end