Package version:

Interface MetricDefinition

Metric definition class specifies the metadata for a metric.

interface MetricDefinition {
    category?: string;
    description?: string;
    dimensions?: {};
    id?: string;
    isDimensionRequired?: boolean;
    metricAvailabilities?: {};
    metricClass?: string;
    name?: string;
    namespace?: string;
    primaryAggregationType?: AggregationType;
    resourceId?: string;
    supportedAggregationTypes?: {};
    unit?: string;
}

Properties

category?: string

Custom category name for this metric.

description?: string

Detailed description of this metric.

dimensions?: {}

the name and the display name of the dimension, i.e. it is a localizable string.

id?: string

the resource identifier of the metric definition.

isDimensionRequired?: boolean

Flag to indicate whether the dimension is required.

metricAvailabilities?: {}

the collection of what aggregation intervals are available to be queried.

metricClass?: string

The class of the metric.

name?: string

the name and the display name of the metric, i.e. it is a localizable string.

namespace?: string

the namespace the metric belongs to.

primaryAggregationType?: AggregationType

the primary aggregation type value defining how to use the values for display.

resourceId?: string

the resource identifier of the resource that emitted the metric.

supportedAggregationTypes?: {}

the collection of what aggregation types are supported.

unit?: string

The unit of the metric.