Class: Azure::Web::Mgmt::V2018_02_01::Models::ResourceMetricDefinition

Inherits:
ProxyOnlyResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb

Overview

Metadata for the metrics.

Instance Attribute Summary collapse

Attributes inherited from ProxyOnlyResource

#id, #kind, #name, #type

Class Method Summary collapse

Instance Attribute Details

#metric_availabilitiesArray<ResourceMetricAvailability>

supported for the metric together with retention period.

Returns:



23
24
25
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 23

def metric_availabilities
  @metric_availabilities
end

#primary_aggregation_typeString

Returns Primary aggregation type.

Returns:

  • (String)

    Primary aggregation type.



19
20
21
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 19

def primary_aggregation_type
  @primary_aggregation_type
end

#propertiesHash{String => String}

Returns Resource metric definition properties.

Returns:

  • (Hash{String => String})

    Resource metric definition properties.



29
30
31
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 29

def properties
  @properties
end

#resource_uriString

Returns Resource URI.

Returns:

  • (String)

    Resource URI.



26
27
28
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 26

def resource_uri
  @resource_uri
end

#unitString

Returns Unit of the metric.

Returns:

  • (String)

    Unit of the metric.



16
17
18
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 16

def unit
  @unit
end

Class Method Details

.mapperObject

Mapper for ResourceMetricDefinition class as Ruby Hash. This will be used for serialization/deserialization.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceMetricDefinition',
    type: {
      name: 'Composite',
      class_name: 'ResourceMetricDefinition',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unit',
          type: {
            name: 'String'
          }
        },
        primary_aggregation_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.primaryAggregationType',
          type: {
            name: 'String'
          }
        },
        metric_availabilities: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.metricAvailabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ResourceMetricAvailabilityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResourceMetricAvailability'
                }
            }
          }
        },
        resource_uri: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceUri',
          type: {
            name: 'String'
          }
        },
        properties: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.properties',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end