Class: Azure::ARM::Web::Models::MetricDefinition
- Inherits:
-
MsRestAzure::Resource
- Object
- MsRestAzure::Resource
- Azure::ARM::Web::Models::MetricDefinition
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/metric_definition.rb
Overview
Metadata for a metric.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Friendly name shown in the UI.
-
#metric_availabilities ⇒ Array<MetricAvailabilily>
the metric together with retention period.
-
#metric_definition_name ⇒ String
Name of the metric.
-
#primary_aggregation_type ⇒ String
Primary aggregation type.
-
#unit ⇒ String
Unit of the metric.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MetricDefinition class as Ruby Hash.
Instance Attribute Details
#display_name ⇒ String
Returns Friendly name shown in the UI.
30 31 32 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 30 def display_name @display_name end |
#metric_availabilities ⇒ Array<MetricAvailabilily>
the metric together with retention period.
27 28 29 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 27 def metric_availabilities @metric_availabilities end |
#metric_definition_name ⇒ String
Returns Name of the metric.
17 18 19 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 17 def metric_definition_name @metric_definition_name end |
#primary_aggregation_type ⇒ String
Returns Primary aggregation type.
23 24 25 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 23 def primary_aggregation_type @primary_aggregation_type end |
#unit ⇒ String
Returns Unit of the metric.
20 21 22 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 20 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for MetricDefinition class as Ruby Hash. This will be used for serialization/deserialization.
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 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/generated/azure_mgmt_web/models/metric_definition.rb', line 37 def self.mapper() { required: false, serialized_name: 'MetricDefinition', type: { name: 'Composite', class_name: 'MetricDefinition', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, kind: { required: false, serialized_name: 'kind', type: { name: 'String' } }, location: { required: true, serialized_name: 'location', type: { name: 'String' } }, type: { required: false, serialized_name: 'type', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, metric_definition_name: { required: false, read_only: true, serialized_name: 'properties.name', type: { name: 'String' } }, unit: { required: false, read_only: true, serialized_name: 'properties.unit', type: { name: 'String' } }, primary_aggregation_type: { required: false, read_only: true, serialized_name: 'properties.primaryAggregationType', type: { name: 'String' } }, metric_availabilities: { required: false, read_only: true, serialized_name: 'properties.metricAvailabilities', type: { name: 'Sequence', element: { required: false, serialized_name: 'MetricAvailabililyElementType', type: { name: 'Composite', class_name: 'MetricAvailabilily' } } } }, display_name: { required: false, read_only: true, serialized_name: 'properties.displayName', type: { name: 'String' } } } } } end |