Class: Azure::ARM::SQL::Models::MetricAvailability
- Inherits:
-
Object
- Object
- Azure::ARM::SQL::Models::MetricAvailability
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_sql/models/metric_availability.rb
Overview
A metric availability value.
Instance Attribute Summary collapse
-
#retention ⇒ String
The length of retention for the database metric.
-
#time_grain ⇒ String
The granularity of the database metric.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricAvailability class as Ruby Hash.
Instance Attribute Details
#retention ⇒ String
Returns The length of retention for the database metric.
17 18 19 |
# File 'lib/generated/azure_mgmt_sql/models/metric_availability.rb', line 17 def retention @retention end |
#time_grain ⇒ String
Returns The granularity of the database metric.
20 21 22 |
# File 'lib/generated/azure_mgmt_sql/models/metric_availability.rb', line 20 def time_grain @time_grain end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricAvailability class as Ruby Hash. This will be used for serialization/deserialization.
27 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 |
# File 'lib/generated/azure_mgmt_sql/models/metric_availability.rb', line 27 def self.mapper() { required: false, serialized_name: 'MetricAvailability', type: { name: 'Composite', class_name: 'MetricAvailability', model_properties: { retention: { required: false, read_only: true, serialized_name: 'retention', type: { name: 'String' } }, time_grain: { required: false, read_only: true, serialized_name: 'timeGrain', type: { name: 'String' } } } } } end |