Class: Azure::Storage::Mgmt::V2020_08_01_preview::Models::MetricSpecification

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

Overview

Metric specification of operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregation_typeString

Returns Aggregation type could be Average.

Returns:

  • (String)

    Aggregation type could be Average.



32
33
34
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 32

def aggregation_type
  @aggregation_type
end

#categoryString

could be Capacity.

Returns:

  • (String)

    The category this metric specification belong to,



39
40
41
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 39

def category
  @category
end

#dimensionsArray<Dimension>

access tier.

Returns:

  • (Array<Dimension>)

    Dimensions of blobs, including blob type and



29
30
31
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 29

def dimensions
  @dimensions
end

#display_descriptionString

Returns Display description of metric specification.

Returns:

  • (String)

    Display description of metric specification.



22
23
24
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 22

def display_description
  @display_description
end

#display_nameString

Returns Display name of metric specification.

Returns:

  • (String)

    Display name of metric specification.



19
20
21
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 19

def display_name
  @display_name
end

#fill_gap_with_zeroBoolean

Returns The property to decide fill gap with zero or not.

Returns:

  • (Boolean)

    The property to decide fill gap with zero or not.



35
36
37
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 35

def fill_gap_with_zero
  @fill_gap_with_zero
end

#nameString

Returns Name of metric specification.

Returns:

  • (String)

    Name of metric specification.



16
17
18
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 16

def name
  @name
end

#resource_id_dimension_name_overrideString

Returns Account Resource Id.

Returns:

  • (String)

    Account Resource Id.



42
43
44
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 42

def resource_id_dimension_name_override
  @resource_id_dimension_name_override
end

#unitString

Returns Unit could be Bytes or Count.

Returns:

  • (String)

    Unit could be Bytes or Count.



25
26
27
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/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.



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
# File 'lib/2020-08-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb', line 49

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'
          }
        },
        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'
                }
            }
          }
        },
        aggregation_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'aggregationType',
          type: {
            name: 'String'
          }
        },
        fill_gap_with_zero: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fillGapWithZero',
          type: {
            name: 'Boolean'
          }
        },
        category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'category',
          type: {
            name: 'String'
          }
        },
        resource_id_dimension_name_override: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceIdDimensionNameOverride',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end