Class: Azure::ARM::Monitor::Models::RuleCondition
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::RuleCondition
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/rule_condition.rb
Overview
The condition that results in the alert rule being activated.
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RuleCondition class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ RuleCondition
constructor
A new instance of RuleCondition.
Constructor Details
#initialize ⇒ RuleCondition
Returns a new instance of RuleCondition.
21 22 23 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 21 def initialize @odata.type = "RuleCondition" end |
Instance Attribute Details
#data_source ⇒ RuleDataSource
data. For this type dataSource will always be of type RuleMetricDataSource.
30 31 32 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 30 def data_source @data_source end |
Class Method Details
.mapper ⇒ Object
Mapper for RuleCondition class as Ruby Hash. This will be used for serialization/deserialization.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_condition.rb', line 37 def self.mapper() { required: false, serialized_name: 'RuleCondition', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleCondition', class_name: 'RuleCondition', model_properties: { data_source: { required: false, serialized_name: 'dataSource', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleDataSource', class_name: 'RuleDataSource' } } } } } end |