Class: Azure::ARM::Monitor::Models::RuleDataSource

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRuleDataSource

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_uriString

monitors.

Returns:

  • (String)

    the resource identifier of the resource the rule



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

.mapperObject

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