Class: Azure::SQL::Mgmt::V2014_04_01::Models::Metric
- Inherits:
-
Object
- Object
- Azure::SQL::Mgmt::V2014_04_01::Models::Metric
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb
Overview
Database metrics.
Instance Attribute Summary collapse
-
#end_time ⇒ DateTime
The end time for the metric (ISO-8601 format).
-
#metric_values ⇒ Array<MetricValue>
window and timestep.
-
#name ⇒ MetricName
The name information for the metric.
-
#start_time ⇒ DateTime
The start time for the metric (ISO-8601 format).
-
#time_grain ⇒ String
values.
-
#unit ⇒ UnitType
‘count’, ‘bytes’, ‘seconds’, ‘percent’, ‘countPerSecond’, ‘bytesPerSecond’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Metric class as Ruby Hash.
Instance Attribute Details
#end_time ⇒ DateTime
Returns The end time for the metric (ISO-8601 format).
19 20 21 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 19 def end_time @end_time end |
#metric_values ⇒ Array<MetricValue>
window and timestep.
35 36 37 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 35 def metric_values @metric_values end |
#name ⇒ MetricName
Returns The name information for the metric.
31 32 33 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 31 def name @name end |
#start_time ⇒ DateTime
Returns The start time for the metric (ISO-8601 format).
16 17 18 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 16 def start_time @start_time end |
#time_grain ⇒ String
values.
23 24 25 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 23 def time_grain @time_grain end |
#unit ⇒ UnitType
‘count’, ‘bytes’, ‘seconds’, ‘percent’, ‘countPerSecond’, ‘bytesPerSecond’
28 29 30 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 28 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for Metric class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Metric', type: { name: 'Composite', class_name: 'Metric', 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, read_only: true, 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' } } } } } } } end |