Partilhar via


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