Partager via


DatabasesClient Interface

public interface DatabasesClient

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

Method Summary

Modifier and Type Method and Description
abstract PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String accountName, String databaseRid)

Retrieves metric definitions for the given database.

abstract PagedIterable<MetricDefinitionInner> listMetricDefinitions(String resourceGroupName, String accountName, String databaseRid, Context context)

Retrieves metric definitions for the given database.

abstract PagedFlux<MetricDefinitionInner> listMetricDefinitionsAsync(String resourceGroupName, String accountName, String databaseRid)

Retrieves metric definitions for the given database.

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

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

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

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

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

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

abstract PagedIterable<UsageInner> listUsages(String resourceGroupName, String accountName, String databaseRid)

Retrieves the usages (most recent data) for the given database.

abstract PagedIterable<UsageInner> listUsages(String resourceGroupName, String accountName, String databaseRid, String filter, Context context)

Retrieves the usages (most recent data) for the given database.

abstract PagedFlux<UsageInner> listUsagesAsync(String resourceGroupName, String accountName, String databaseRid)

Retrieves the usages (most recent data) for the given database.

abstract PagedFlux<UsageInner> listUsagesAsync(String resourceGroupName, String accountName, String databaseRid, String filter)

Retrieves the usages (most recent data) for the given database.

Method Details

listMetricDefinitions

public abstract PagedIterable listMetricDefinitions(String resourceGroupName, String accountName, String databaseRid)

Retrieves metric definitions for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.

Returns:

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

listMetricDefinitions

public abstract PagedIterable listMetricDefinitions(String resourceGroupName, String accountName, String databaseRid, Context context)

Retrieves metric definitions for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
context - The context to associate with this operation.

Returns:

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

listMetricDefinitionsAsync

public abstract PagedFlux listMetricDefinitionsAsync(String resourceGroupName, String accountName, String databaseRid)

Retrieves metric definitions for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.

Returns:

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

listMetrics

public abstract PagedIterable listMetrics(String resourceGroupName, String accountName, String databaseRid, String filter)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
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 listMetrics(String resourceGroupName, String accountName, String databaseRid, String filter, Context context)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
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 listMetricsAsync(String resourceGroupName, String accountName, String databaseRid, String filter)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
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>.

listUsages

public abstract PagedIterable listUsages(String resourceGroupName, String accountName, String databaseRid)

Retrieves the usages (most recent data) for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.

Returns:

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

listUsages

public abstract PagedIterable listUsages(String resourceGroupName, String accountName, String databaseRid, String filter, Context context)

Retrieves the usages (most recent data) for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
filter - An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
context - The context to associate with this operation.

Returns:

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

listUsagesAsync

public abstract PagedFlux listUsagesAsync(String resourceGroupName, String accountName, String databaseRid)

Retrieves the usages (most recent data) for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.

Returns:

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

listUsagesAsync

public abstract PagedFlux listUsagesAsync(String resourceGroupName, String accountName, String databaseRid, String filter)

Retrieves the usages (most recent data) for the given database.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
accountName - Cosmos DB database account name.
databaseRid - Cosmos DB database rid.
filter - An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).

Returns:

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

Applies to