Class: Azure::ARM::Web::Models::ResourceMetricDefinition
- Inherits:
-
MsRestAzure::Resource
- Object
- MsRestAzure::Resource
- Azure::ARM::Web::Models::ResourceMetricDefinition
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/resource_metric_definition.rb
Overview
Metadata for the metrics.
Instance Attribute Summary collapse
-
#metric_availabilities ⇒ Array<ResourceMetricAvailability>
supported for the metric together with retention period.
-
#primary_aggregation_type ⇒ String
Primary aggregation type.
-
#properties ⇒ Hash{String => String}
Properties.
-
#resource_metric_definition_id ⇒ String
Resource ID.
-
#resource_metric_definition_name ⇒ ResourceMetricName
Name of the metric.
-
#resource_uri ⇒ String
Resource URI.
-
#unit ⇒ String
Unit of the metric.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResourceMetricDefinition class as Ruby Hash.
Instance Attribute Details
#metric_availabilities ⇒ Array<ResourceMetricAvailability>
supported for the metric together with retention period.
27 28 29 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 27 def metric_availabilities @metric_availabilities end |
#primary_aggregation_type ⇒ String
Returns Primary aggregation type.
23 24 25 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 23 def primary_aggregation_type @primary_aggregation_type end |
#properties ⇒ Hash{String => String}
Returns Properties.
36 37 38 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 36 def properties @properties end |
#resource_metric_definition_id ⇒ String
Returns Resource ID.
33 34 35 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 33 def resource_metric_definition_id @resource_metric_definition_id end |
#resource_metric_definition_name ⇒ ResourceMetricName
Returns Name of the metric.
17 18 19 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 17 def resource_metric_definition_name @resource_metric_definition_name end |
#resource_uri ⇒ String
Returns Resource URI.
30 31 32 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 30 def resource_uri @resource_uri end |
#unit ⇒ String
Returns Unit of the metric.
20 21 22 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 20 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for ResourceMetricDefinition class as Ruby Hash. This will be used for serialization/deserialization.
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 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 43 def self.mapper() { required: false, serialized_name: 'ResourceMetricDefinition', type: { name: 'Composite', class_name: 'ResourceMetricDefinition', 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' } } } }, resource_metric_definition_name: { required: false, read_only: true, serialized_name: 'properties.name', type: { name: 'Composite', class_name: 'ResourceMetricName' } }, 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: 'ResourceMetricAvailabilityElementType', type: { name: 'Composite', class_name: 'ResourceMetricAvailability' } } } }, resource_uri: { required: false, read_only: true, serialized_name: 'properties.resourceUri', type: { name: 'String' } }, resource_metric_definition_id: { required: false, read_only: true, serialized_name: 'properties.id', type: { name: 'String' } }, properties: { required: false, read_only: true, serialized_name: 'properties.properties', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |