class Azure::Monitor::Mgmt::V2018_01_01::Models::MetricDefinition
Metric
definition class specifies the metadata for a metric.
Attributes
@return [Array<LocalizableString>] the name and the display name of the dimension, i.e. it is a localizable string.
@return [String] the resource identifier of the metric definition.
@return [Boolean] Flag to indicate whether the dimension is required.
@return [Array<MetricAvailability>] the collection of what aggregation intervals are available to be queried.
@return [LocalizableString] the name and the display name of the metric, i.e. it is a localizable string.
@return [String] the namespace the metric belongs to.
@return [AggregationType] the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total'
@return [String] the resource identifier of the resource that emitted the metric.
@return [Array<AggregationType>] the collection of what aggregation types are supported.
@return [Unit] the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'
Private Class Methods
Mapper for MetricDefinition
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb, line 60 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MetricDefinition', type: { name: 'Composite', class_name: 'MetricDefinition', model_properties: { is_dimension_required: { client_side_validation: true, required: false, serialized_name: 'isDimensionRequired', type: { name: 'Boolean' } }, resource_id: { client_side_validation: true, required: false, serialized_name: 'resourceId', type: { name: 'String' } }, namespace: { client_side_validation: true, required: false, serialized_name: 'namespace', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'Composite', class_name: 'LocalizableString' } }, unit: { client_side_validation: true, required: false, serialized_name: 'unit', type: { name: 'Enum', module: 'Unit' } }, primary_aggregation_type: { client_side_validation: true, required: false, serialized_name: 'primaryAggregationType', type: { name: 'Enum', module: 'AggregationType' } }, supported_aggregation_types: { client_side_validation: true, required: false, serialized_name: 'supportedAggregationTypes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'AggregationTypeElementType', type: { name: 'Enum', module: 'AggregationType' } } } }, metric_availabilities: { client_side_validation: true, required: false, serialized_name: 'metricAvailabilities', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MetricAvailabilityElementType', type: { name: 'Composite', class_name: 'MetricAvailability' } } } }, id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, dimensions: { client_side_validation: true, required: false, serialized_name: 'dimensions', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'LocalizableStringElementType', type: { name: 'Composite', class_name: 'LocalizableString' } } } } } } } end