你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricDefinitions Interface

Implements

public interface MetricDefinitions
extends HasManager<MonitorManager>

Entry point for Monitor Metric Definitions API.

Method Summary

Modifier and Type Method and Description
abstract PagedIterable<MetricDefinition> listByResource(String resourceId)

Lists Metric Definitions for a given resource.

abstract PagedFlux<MetricDefinition> listByResourceAsync(String resourceId)

Lists Metric Definitions for a given resource.

Method Details

listByResource

public abstract PagedIterable listByResource(String resourceId)

Lists Metric Definitions for a given resource.

Parameters:

resourceId - The resource Id.

Returns:

list of metric definitions.

listByResourceAsync

public abstract PagedFlux listByResourceAsync(String resourceId)

Lists Metric Definitions for a given resource.

Parameters:

resourceId - The resource Id.

Returns:

a representation of the deferred computation of Metric Definitions list call.

Applies to