Class: Azure::ARM::Monitor::Models::RuleDataSource
- Inherits:
-
Object
- Object
- Azure::ARM::Monitor::Models::RuleDataSource
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_monitor/models/rule_data_source.rb
Overview
The resource from which the rule collects its data.
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#resource_uri ⇒ String
monitors.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RuleDataSource class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ RuleDataSource
constructor
A new instance of RuleDataSource.
Constructor Details
#initialize ⇒ RuleDataSource
Returns a new instance of RuleDataSource.
20 21 22 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_data_source.rb', line 20 def initialize @odata.type = "RuleDataSource" end |
Instance Attribute Details
#resource_uri ⇒ String
monitors.
28 29 30 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_data_source.rb', line 28 def resource_uri @resource_uri end |
Class Method Details
.mapper ⇒ Object
Mapper for RuleDataSource class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/generated/azure_mgmt_monitor/models/rule_data_source.rb', line 35 def self.mapper() { required: false, serialized_name: 'RuleDataSource', type: { name: 'Composite', polymorphic_discriminator: 'odata.type', uber_parent: 'RuleDataSource', class_name: 'RuleDataSource', model_properties: { resource_uri: { required: false, serialized_name: 'resourceUri', type: { name: 'String' } } } } } end |