Partager via


MetricDefinition Interface

Implements

public interface MetricDefinition
extends HasManager<MonitorManager>, HasInnerModel<MetricDefinitionInner>

The Azure metric definition entries are of type MetricDefinition.

Method Summary

Modifier and Type Method and Description
abstract WithMetricStartTimeFilter defineQuery()

Begins a definition for a new resource Metric query.

abstract List<LocalizableString> dimensions()

the name and the display name of the dimension, i.e.

abstract String id()

Get the id value.

abstract boolean isDimensionRequired()

Get the isDimensionRequired value.

abstract List<MetricAvailability> metricAvailabilities()

Get the metricAvailabilities value.

abstract LocalizableString name()

Get the name value.

abstract String namespace()

Get the namespace value.

abstract AggregationType primaryAggregationType()

Get the primaryAggregationType value.

abstract String resourceId()

Get the resourceId value.

abstract List<AggregationType> supportedAggregationTypes()

the collection of what aggregation types are supported.

abstract Unit unit()

Get the unit value.

Method Details

defineQuery

public abstract MetricDefinition.MetricsQueryDefinitionStages.WithMetricStartTimeFilter defineQuery()

Begins a definition for a new resource Metric query.

Returns:

the stage of start time filter definition.

dimensions

public abstract List dimensions()

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

Returns:

the list of dimension values.

id

public abstract String id()

Get the id value.

Returns:

the id value

isDimensionRequired

public abstract boolean isDimensionRequired()

Get the isDimensionRequired value.

Returns:

the isDimensionRequired value

metricAvailabilities

public abstract List metricAvailabilities()

Get the metricAvailabilities value.

Returns:

the metricAvailabilities value

name

public abstract LocalizableString name()

Get the name value.

Returns:

the name value

namespace

public abstract String namespace()

Get the namespace value.

Returns:

the namespace value

primaryAggregationType

public abstract AggregationType primaryAggregationType()

Get the primaryAggregationType value.

Returns:

the primaryAggregationType value

resourceId

public abstract String resourceId()

Get the resourceId value.

Returns:

the resourceId value

supportedAggregationTypes

public abstract List supportedAggregationTypes()

the collection of what aggregation types are supported.

Returns:

the list of supported aggregation type values.

unit

public abstract Unit unit()

Get the unit value.

Returns:

the unit value

Applies to