Class: Azure::StorageCache::Mgmt::V2020_10_01::Models::MetricSpecification
- Inherits:
-
Object
- Object
- Azure::StorageCache::Mgmt::V2020_10_01::Models::MetricSpecification
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb
Overview
Details about operation related to metrics.
Instance Attribute Summary collapse
-
#aggregation_type ⇒ String
The type of metric aggregation.
-
#dimensions ⇒ Array<MetricDimension>
Dimensions of the metric.
-
#display_description ⇒ String
The description of the metric.
-
#display_name ⇒ String
Localized display name of the metric.
-
#metric_class ⇒ String
Type of metrics.
-
#name ⇒ String
The name of the metric.
-
#supported_aggregation_types ⇒ Array<MetricAggregationType>
Support metric aggregation type.
-
#unit ⇒ String
The unit that the metric is measured in.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricSpecification class as Ruby Hash.
Instance Attribute Details
#aggregation_type ⇒ String
Returns The type of metric aggregation.
28 29 30 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 28 def aggregation_type @aggregation_type end |
#dimensions ⇒ Array<MetricDimension>
Returns Dimensions of the metric.
37 38 39 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 37 def dimensions @dimensions end |
#display_description ⇒ String
Returns The description of the metric.
22 23 24 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 22 def display_description @display_description end |
#display_name ⇒ String
Returns Localized display name of the metric.
19 20 21 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 19 def display_name @display_name end |
#metric_class ⇒ String
Returns Type of metrics.
34 35 36 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 34 def metric_class @metric_class end |
#name ⇒ String
Returns The name of the metric.
16 17 18 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 16 def name @name end |
#supported_aggregation_types ⇒ Array<MetricAggregationType>
Returns Support metric aggregation type.
31 32 33 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 31 def supported_aggregation_types @supported_aggregation_types end |
#unit ⇒ String
Returns The unit that the metric is measured in.
25 26 27 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 25 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricSpecification class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb', line 44 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' } }, supported_aggregation_types: { client_side_validation: true, required: false, serialized_name: 'supportedAggregationTypes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricAggregationTypeElementType', type: { name: 'String' } } } }, metric_class: { client_side_validation: true, required: false, serialized_name: 'metricClass', 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: 'MetricDimensionElementType', type: { name: 'Composite', class_name: 'MetricDimension' } } } } } } } end |