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

DatabaseAccountRegionsClient Interface

public interface DatabaseAccountRegionsClient

An instance of this class provides access to all the operations defined in DatabaseAccountRegionsClient.

Method Summary

Modifier and Type Method and Description
abstract PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String region, String filter)

Retrieves the metrics determined by the given filter for the given database account and region.

abstract PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String region, String filter, Context context)

Retrieves the metrics determined by the given filter for the given database account and region.

abstract PagedFlux<MetricInner> listMetricsAsync(String resourceGroupName, String accountName, String region, String filter)

Retrieves the metrics determined by the given filter for the given database account and region.

Method Details

listMetrics

public abstract PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String region, String filter)

Retrieves the metrics determined by the given filter for the given database account and region.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
region - Cosmos DB region, with spaces between words and each word capitalized.
filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

Returns:

the response to a list metrics request as paginated response with PagedIterable<T>.

listMetrics

public abstract PagedIterable<MetricInner> listMetrics(String resourceGroupName, String accountName, String region, String filter, Context context)

Retrieves the metrics determined by the given filter for the given database account and region.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
region - Cosmos DB region, with spaces between words and each word capitalized.
filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.
context - The context to associate with this operation.

Returns:

the response to a list metrics request as paginated response with PagedIterable<T>.

listMetricsAsync

public abstract PagedFlux<MetricInner> listMetricsAsync(String resourceGroupName, String accountName, String region, String filter)

Retrieves the metrics determined by the given filter for the given database account and region.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
region - Cosmos DB region, with spaces between words and each word capitalized.
filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq.

Returns:

the response to a list metrics request as paginated response with PagedFlux<T>.

Applies to