Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::MetricDefinition
- Inherits:
-
Object
- Object
- Azure::Cosmosdb::Mgmt::V2019_12_12::Models::MetricDefinition
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb
Overview
The definition of a metric.
Instance Attribute Summary collapse
-
#metric_availabilities ⇒ Array<MetricAvailability>
for the account.
-
#name ⇒ MetricName
The name information for the metric.
-
#primary_aggregation_type ⇒ PrimaryAggregationType
metric.
-
#resource_uri ⇒ String
The resource uri of the database.
-
#unit ⇒ UnitType
‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricDefinition class as Ruby Hash.
Instance Attribute Details
#metric_availabilities ⇒ Array<MetricAvailability>
for the account.
17 18 19 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 17 def metric_availabilities @metric_availabilities end |
#name ⇒ MetricName
Returns The name information for the metric.
33 34 35 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 33 def name @name end |
#primary_aggregation_type ⇒ PrimaryAggregationType
metric. Possible values include: ‘None’, ‘Average’, ‘Total’, ‘Minimum’, ‘Maximum’, ‘Last’
22 23 24 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 22 def primary_aggregation_type @primary_aggregation_type end |
#resource_uri ⇒ String
Returns The resource uri of the database.
30 31 32 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 30 def resource_uri @resource_uri end |
#unit ⇒ UnitType
‘Count’, ‘Bytes’, ‘Seconds’, ‘Percent’, ‘CountPerSecond’, ‘BytesPerSecond’, ‘Milliseconds’
27 28 29 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 27 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricDefinition class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/metric_definition.rb', line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricDefinition', type: { name: 'Composite', class_name: 'MetricDefinition', model_properties: { metric_availabilities: { client_side_validation: true, required: false, read_only: true, serialized_name: 'metricAvailabilities', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricAvailabilityElementType', type: { name: 'Composite', class_name: 'MetricAvailability' } } } }, primary_aggregation_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'primaryAggregationType', type: { name: 'String' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'String' } }, resource_uri: { client_side_validation: true, required: false, read_only: true, serialized_name: 'resourceUri', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'MetricName' } } } } } end |