Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::PartitionMetric
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb
Overview
The metric values for a single partition.
Instance Attribute Summary collapse
-
#partition_id ⇒ String
values.
-
#partition_key_range_id ⇒ String
metric values.
Attributes inherited from Metric
#end_time, #metric_values, #name, #start_time, #time_grain, #unit
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PartitionMetric class as Ruby Hash.
Instance Attribute Details
#partition_id ⇒ String
values.
17 18 19 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb', line 17 def partition_id @partition_id end |
#partition_key_range_id ⇒ String
metric values.
21 22 23 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb', line 21 def partition_key_range_id @partition_key_range_id end |
Class Method Details
.mapper ⇒ Object
Mapper for PartitionMetric class as Ruby Hash. This will be used for serialization/deserialization.
28 29 30 31 32 33 34 35 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 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/partition_metric.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PartitionMetric', type: { name: 'Composite', class_name: 'PartitionMetric', model_properties: { start_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'startTime', type: { name: 'DateTime' } }, end_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'endTime', type: { name: 'DateTime' } }, time_grain: { client_side_validation: true, required: false, read_only: true, serialized_name: 'timeGrain', type: { name: 'String' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'MetricName' } }, metric_values: { client_side_validation: true, required: false, read_only: true, serialized_name: 'metricValues', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricValueElementType', type: { name: 'Composite', class_name: 'MetricValue' } } } }, partition_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'partitionId', type: { name: 'String' } }, partition_key_range_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'partitionKeyRangeId', type: { name: 'String' } } } } } end |