mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-02 01:25:42 -05:00
Add AQL Assessment service (#946)
[SQL Assessment API](https://docs.microsoft.com/en-us/sql/sql-assessment-api/sql-assessment-api-overview) provides a mechanism to evaluate the configuration of SQL Server for best practices. SQL Assessment API gives a list of recommended actions to improve SQL Server performance or security. The SQL Assessment service is used by the expected SQL Assessment feature of Azure Data Studio. SqlAssessmentService forwards JSONRPC calls to SQL Assessment engine and wraps results as a response. `assessment/getAssessmentItems` returns a set of checks applicable to a given target. `assessment/invoke` returns a set of recommendations for improving SQL Server instance or database configurations. `assessment/generateScript` returns a T-SQL script for storing an assessment result set to a SQL data table.
This commit is contained in:
@@ -2981,6 +2981,30 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlAssessmentGenerateScriptTaskName
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlAssessmentGenerateScriptTaskName);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlAssessmentQueryInvalidOwnerUri
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlAssessmentQueryInvalidOwnerUri);
|
||||
}
|
||||
}
|
||||
|
||||
public static string SqlAssessmentConnectingError
|
||||
{
|
||||
get
|
||||
{
|
||||
return Keys.GetString(Keys.SqlAssessmentConnectingError);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionServiceListDbErrorNotConnected(string uri)
|
||||
{
|
||||
return Keys.GetString(Keys.ConnectionServiceListDbErrorNotConnected, uri);
|
||||
@@ -3156,6 +3180,11 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
return Keys.GetString(Keys.ScheduleNameAlreadyExists, scheduleName);
|
||||
}
|
||||
|
||||
public static string SqlAssessmentUnsuppoertedEdition(int editionCode)
|
||||
{
|
||||
return Keys.GetString(Keys.SqlAssessmentUnsuppoertedEdition, editionCode);
|
||||
}
|
||||
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
public class Keys
|
||||
{
|
||||
@@ -4376,6 +4405,18 @@ namespace Microsoft.SqlTools.ServiceLayer
|
||||
public const string SchemaCompareSessionNotFound = "SchemaCompareSessionNotFound";
|
||||
|
||||
|
||||
public const string SqlAssessmentGenerateScriptTaskName = "SqlAssessmentGenerateScriptTaskName";
|
||||
|
||||
|
||||
public const string SqlAssessmentQueryInvalidOwnerUri = "SqlAssessmentQueryInvalidOwnerUri";
|
||||
|
||||
|
||||
public const string SqlAssessmentConnectingError = "SqlAssessmentConnectingError";
|
||||
|
||||
|
||||
public const string SqlAssessmentUnsuppoertedEdition = "SqlAssessmentUnsuppoertedEdition";
|
||||
|
||||
|
||||
private Keys()
|
||||
{ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user