Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.sql; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasName; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup; import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; import com.microsoft.azure.management.sql.implementation.RecommendedElasticPoolInner; import com.microsoft.azure.management.sql.implementation.SqlServerManager; import org.joda.time.DateTime; import rx.Observable; import java.util.List;
An immutable client-side representation of an Azure SQL Recommended ElasticPool.
/** * An immutable client-side representation of an Azure SQL Recommended ElasticPool. */
@Fluent public interface RecommendedElasticPool extends Refreshable<RecommendedElasticPool>, HasInner<RecommendedElasticPoolInner>, HasResourceGroup, HasName, HasId, HasManager<SqlServerManager> {
Returns:name of the SQL Server to which this database belongs
/** * @return name of the SQL Server to which this database belongs */
@Deprecated String sqlServerName();
Returns:the edition of the Azure SQL Recommended Elastic Pool. The ElasticPoolEditions enumeration contains all the valid editions. Possible values include: 'Basic', 'Standard', 'Premium'.
/** * @return the edition of the Azure SQL Recommended Elastic Pool. The * ElasticPoolEditions enumeration contains all the valid editions. * Possible values include: 'Basic', 'Standard', 'Premium'. */
@Beta(Beta.SinceVersion.V1_7_0) ElasticPoolEdition databaseEdition();
Returns:the DTU for the SQL Azure Recommended Elastic Pool.
/** * @return the DTU for the SQL Azure Recommended Elastic Pool. */
double dtu();
Returns:the minimum DTU for the database.
/** * @return the minimum DTU for the database. */
double databaseDtuMin();
Returns:the maximum DTU for the database.
/** * @return the maximum DTU for the database. */
double databaseDtuMax();
Returns:storage size in megabytes.
/** * @return storage size in megabytes. */
double storageMB();
Returns:the observation period start (ISO8601 format).
/** * @return the observation period start (ISO8601 format). */
DateTime observationPeriodStart();
Returns:the observation period start (ISO8601 format).
/** * @return the observation period start (ISO8601 format). */
DateTime observationPeriodEnd();
Returns:maximum observed DTU.
/** * @return maximum observed DTU. */
double maxObservedDtu();
Returns:maximum observed storage in megabytes.
/** * @return maximum observed storage in megabytes. */
double maxObservedStorageMB();
Returns:the list of Azure SQL Databases in this pool. Expanded property.
/** * @return the list of Azure SQL Databases in this pool. Expanded property. */
List<SqlDatabase> databases();
Fetches list of databases by making call to Azure.
Returns:list of the databases in recommended elastic pool
/** * Fetches list of databases by making call to Azure. * @return list of the databases in recommended elastic pool */
@Method List<SqlDatabase> listDatabases();
Fetches list of databases by making call to Azure.
Returns:a representation of the deferred computation of the databases in this recommended elastic pool
/** * Fetches list of databases by making call to Azure. * @return a representation of the deferred computation of the databases in this recommended elastic pool */
@Method @Beta(Beta.SinceVersion.V1_7_0) Observable<SqlDatabase> listDatabasesAsync();
Get a specific database in the recommended database.
Params:
  • databaseName – name of the database to be fetched
Returns:information on the database recommended in recommended elastic pool
/** * Get a specific database in the recommended database. * * @param databaseName name of the database to be fetched * @return information on the database recommended in recommended elastic pool */
SqlDatabase getDatabase(String databaseName);
Get a specific database in the recommended database.
Params:
  • databaseName – name of the database to be fetched
Returns:a representation of the deferred computation to get the database in the recommended elastic pool
/** * Get a specific database in the recommended database. * * @param databaseName name of the database to be fetched * @return a representation of the deferred computation to get the database in the recommended elastic pool */
@Beta(Beta.SinceVersion.V1_7_0) Observable<SqlDatabase> getDatabaseAsync(String databaseName);
Fetches list of metrics information by making call to Azure.
Returns:list of the databases in recommended elastic pool
/** * Fetches list of metrics information by making call to Azure. * @return list of the databases in recommended elastic pool */
@Method List<RecommendedElasticPoolMetric> listMetrics(); }