Class: Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue
- Inherits:
-
Object
- Object
- Azure::SQL::Mgmt::V2014_04_01::Models::MetricValue
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb
Overview
Represents database metrics.
Instance Attribute Summary collapse
-
#average ⇒ Float
The average value of the metric.
-
#count ⇒ Float
The number of values for the metric.
-
#maximum ⇒ Float
The max value of the metric.
-
#minimum ⇒ Float
The min value of the metric.
-
#timestamp ⇒ DateTime
The metric timestamp (ISO-8601 format).
-
#total ⇒ Float
The total value of the metric.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricValue class as Ruby Hash.
Instance Attribute Details
#average ⇒ Float
Returns The average value of the metric.
19 20 21 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 19 def average @average end |
#count ⇒ Float
Returns The number of values for the metric.
16 17 18 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 16 def count @count end |
#maximum ⇒ Float
Returns The max value of the metric.
22 23 24 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 22 def maximum @maximum end |
#minimum ⇒ Float
Returns The min value of the metric.
25 26 27 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 25 def minimum @minimum end |
#timestamp ⇒ DateTime
Returns The metric timestamp (ISO-8601 format).
28 29 30 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 28 def @timestamp end |
#total ⇒ Float
Returns The total value of the metric.
31 32 33 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 31 def total @total end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricValue class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/metric_value.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricValue', type: { name: 'Composite', class_name: 'MetricValue', model_properties: { count: { client_side_validation: true, required: false, read_only: true, serialized_name: 'count', type: { name: 'Double' } }, average: { client_side_validation: true, required: false, read_only: true, serialized_name: 'average', type: { name: 'Double' } }, maximum: { client_side_validation: true, required: false, read_only: true, serialized_name: 'maximum', type: { name: 'Double' } }, minimum: { client_side_validation: true, required: false, read_only: true, serialized_name: 'minimum', type: { name: 'Double' } }, timestamp: { client_side_validation: true, required: false, read_only: true, serialized_name: 'timestamp', type: { name: 'DateTime' } }, total: { client_side_validation: true, required: false, read_only: true, serialized_name: 'total', type: { name: 'Double' } } } } } end |