Class: Azure::Network::Mgmt::V2018_08_01::Models::MetricSpecification

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb

Overview

Description of metrics specification.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregation_typeString

Returns The aggregation type.

Returns:

  • (String)

    The aggregation type.


28
29
30
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 28

def aggregation_type
  @aggregation_type
end

#availabilitiesArray<Availability>

Returns List of availability.

Returns:


31
32
33
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 31

def availabilities
  @availabilities
end

#dimensionsArray<Dimension>

Returns List of dimensions.

Returns:


43
44
45
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 43

def dimensions
  @dimensions
end

#display_descriptionString

Returns The description of the metric.

Returns:

  • (String)

    The description of the metric.


22
23
24
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 22

def display_description
  @display_description
end

#display_nameString

Returns The display name of the metric.

Returns:

  • (String)

    The display name of the metric.


19
20
21
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 19

def display_name
  @display_name
end

#enable_regional_mdm_accountBoolean

Returns Whether regional MDM account enabled.

Returns:

  • (Boolean)

    Whether regional MDM account enabled.


34
35
36
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 34

def 
  @enable_regional_mdm_account
end

#fill_gap_with_zeroBoolean

Returns Whether gaps would be filled with zeros.

Returns:

  • (Boolean)

    Whether gaps would be filled with zeros.


37
38
39
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 37

def fill_gap_with_zero
  @fill_gap_with_zero
end

#is_internalBoolean

Returns Whether the metric is internal.

Returns:

  • (Boolean)

    Whether the metric is internal.


46
47
48
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 46

def is_internal
  @is_internal
end

#metric_filter_patternString

Returns Pattern for the filter of the metric.

Returns:

  • (String)

    Pattern for the filter of the metric.


40
41
42
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 40

def metric_filter_pattern
  @metric_filter_pattern
end

#nameString

Returns The name of the metric.

Returns:

  • (String)

    The name of the metric.


16
17
18
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 16

def name
  @name
end

#resource_id_dimension_name_overrideString

Returns The resource Id dimension name override.

Returns:

  • (String)

    The resource Id dimension name override.


55
56
57
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 55

def resource_id_dimension_name_override
  @resource_id_dimension_name_override
end

#source_mdm_accountString

Returns The source MDM account.

Returns:

  • (String)

    The source MDM account.


49
50
51
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 49

def 
  @source_mdm_account
end

#source_mdm_namespaceString

Returns The source MDM namespace.

Returns:

  • (String)

    The source MDM namespace.


52
53
54
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 52

def source_mdm_namespace
  @source_mdm_namespace
end

#unitString

Returns Units the metric to be displayed in.

Returns:

  • (String)

    Units the metric to be displayed in.


25
26
27
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 25

def unit
  @unit
end

Class Method Details

.mapperObject

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


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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/metric_specification.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MetricSpecification',
    type: {
      name: 'Composite',
      class_name: 'MetricSpecification',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        display_description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayDescription',
          type: {
            name: 'String'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        aggregation_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aggregationType',
          type: {
            name: 'String'
          }
        },
        availabilities: {
          client_side_validation: true,
          required: false,
          serialized_name: 'availabilities',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AvailabilityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Availability'
                }
            }
          }
        },
        enable_regional_mdm_account: {
          client_side_validation: true,
          required: false,
          serialized_name: 'enableRegionalMdmAccount',
          type: {
            name: 'Boolean'
          }
        },
        fill_gap_with_zero: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fillGapWithZero',
          type: {
            name: 'Boolean'
          }
        },
        metric_filter_pattern: {
          client_side_validation: true,
          required: false,
          serialized_name: 'metricFilterPattern',
          type: {
            name: 'String'
          }
        },
        dimensions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dimensions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DimensionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Dimension'
                }
            }
          }
        },
        is_internal: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isInternal',
          type: {
            name: 'Boolean'
          }
        },
        source_mdm_account: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceMdmAccount',
          type: {
            name: 'String'
          }
        },
        source_mdm_namespace: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceMdmNamespace',
          type: {
            name: 'String'
          }
        },
        resource_id_dimension_name_override: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceIdDimensionNameOverride',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end