C# Class Microsoft.Azure.Commands.Sql.ServiceTierAdvisor.Services.AzureSqlServiceTierAdvisorAdapter

Adapter for Service Tier Advisor operations
Exibir arquivo Open project: Azure/azure-powershell

Private Properties

Property Type Description
CreateUpgradeDatabaseHint Microsoft.Azure.Management.Sql.Models.RecommendedDatabaseProperties
SloToEdition string

Public Methods

Method Description
AzureSqlServiceTierAdvisorAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models

Constructs a service tier advisor adapter

GetUpgradeDatabaseHints ( string resourceGroupName, string serverName, string databaseName, bool excludeEpCandidates ) : Microsoft.Azure.Management.Sql.Models.RecommendedDatabaseProperties

Get upgrade database hints for database.

ListUpgradeDatabaseHints ( string resourceGroupName, string serverName, bool excludeEpCandidates ) : ICollection

List recommended database service tier and SLO for all databases on server.

Private Methods

Method Description
CreateUpgradeDatabaseHint ( Management database ) : Microsoft.Azure.Management.Sql.Models.RecommendedDatabaseProperties

Creates UpgradeDatabaseHint from database object by using same edition and SLO from upgrade hint.

SloToEdition ( string ServiceLevelObjective ) : string

Map SLO to Edition

Method Details

AzureSqlServiceTierAdvisorAdapter() public method

Constructs a service tier advisor adapter
public AzureSqlServiceTierAdvisorAdapter ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication.Models
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication.Models

GetUpgradeDatabaseHints() public method

Get upgrade database hints for database.
public GetUpgradeDatabaseHints ( string resourceGroupName, string serverName, string databaseName, bool excludeEpCandidates ) : Microsoft.Azure.Management.Sql.Models.RecommendedDatabaseProperties
resourceGroupName string The name of the resource group
serverName string The name of Azure Sql server
databaseName string The name of Azure Sql database
excludeEpCandidates bool Exclude databases if it is already recommended for elastic pool
return Microsoft.Azure.Management.Sql.Models.RecommendedDatabaseProperties

ListUpgradeDatabaseHints() public method

List recommended database service tier and SLO for all databases on server.
public ListUpgradeDatabaseHints ( string resourceGroupName, string serverName, bool excludeEpCandidates ) : ICollection
resourceGroupName string Resource group
serverName string Server name
excludeEpCandidates bool Exclude databases that are already recommended for elastic pools
return ICollection