Class: Azure::Web::Mgmt::V2015_08_01::Models::ResourceMetricDefinition
- Inherits:
-
ProxyOnlyResource
- Object
- ProxyOnlyResource
- Azure::Web::Mgmt::V2015_08_01::Models::ResourceMetricDefinition
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-08-01/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}
Resource metric definition 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.
Attributes inherited from ProxyOnlyResource
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.
26 27 28 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 26 def metric_availabilities @metric_availabilities end |
#primary_aggregation_type ⇒ String
Returns Primary aggregation type.
22 23 24 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 22 def primary_aggregation_type @primary_aggregation_type end |
#properties ⇒ Hash{String => String}
Returns Resource metric definition properties.
35 36 37 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 35 def properties @properties end |
#resource_metric_definition_id ⇒ String
Returns Resource ID.
32 33 34 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 32 def resource_metric_definition_id @resource_metric_definition_id end |
#resource_metric_definition_name ⇒ ResourceMetricName
Returns Name of the metric.
16 17 18 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 16 def resource_metric_definition_name @resource_metric_definition_name end |
#resource_uri ⇒ String
Returns Resource URI.
29 30 31 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 29 def resource_uri @resource_uri end |
#unit ⇒ String
Returns Unit of the metric.
19 20 21 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 19 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for ResourceMetricDefinition class as Ruby Hash. This will be used for serialization/deserialization.
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 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/2015-08-01/generated/azure_mgmt_web/models/resource_metric_definition.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResourceMetricDefinition', type: { name: 'Composite', class_name: 'ResourceMetricDefinition', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, kind: { client_side_validation: true, required: false, serialized_name: 'kind', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, resource_metric_definition_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.name', type: { name: 'Composite', class_name: 'ResourceMetricName' } }, unit: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.unit', type: { name: 'String' } }, primary_aggregation_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.primaryAggregationType', type: { name: 'String' } }, metric_availabilities: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.metricAvailabilities', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ResourceMetricAvailabilityElementType', type: { name: 'Composite', class_name: 'ResourceMetricAvailability' } } } }, resource_uri: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.resourceUri', type: { name: 'String' } }, resource_metric_definition_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.id', type: { name: 'String' } }, properties: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.properties', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |