mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-06 01:25:43 -05:00
[SQL Migration] Upgrade Microsoft.SqlServer.Migration.Assessment (#1734)
* WIP - update NuGet and add xevent assessment request * Update API * Update nupkg to official build * Add try/catch around individual recommendation models * Clean up * Add HS to SQL DB SKU recommendation input
This commit is contained in:
@@ -156,6 +156,20 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts
|
||||
internal string sqlDbReportPath;
|
||||
internal string sqlMiReportPath;
|
||||
internal string sqlVmReportPath;
|
||||
|
||||
// Create a new empty RecommendationResultSet
|
||||
internal RecommendationResultSet()
|
||||
{
|
||||
this.sqlDbResults = new List<SkuRecommendationResult>();
|
||||
this.sqlMiResults = new List<SkuRecommendationResult>();
|
||||
this.sqlVmResults = new List<SkuRecommendationResult>();
|
||||
this.sqlDbDurationInMs = -1;
|
||||
this.sqlMiDurationInMs = -1;
|
||||
this.sqlVmDurationInMs = -1;
|
||||
this.sqlDbReportPath = "";
|
||||
this.sqlMiReportPath = "";
|
||||
this.sqlVmReportPath = "";
|
||||
}
|
||||
}
|
||||
|
||||
public class GetSkuRecommendationsRequest
|
||||
|
||||
@@ -10,8 +10,20 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts
|
||||
{
|
||||
public class MigrationAssessmentsParams
|
||||
{
|
||||
/// <summary>
|
||||
/// Owner URI
|
||||
/// </summary>
|
||||
public string OwnerUri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of databases to assess
|
||||
/// </summary>
|
||||
public string[] Databases { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Folder path to XEvents files to be assessed, if applicable. Empty string to disable XEvents assessment.
|
||||
/// </summary>
|
||||
public string XEventsFilesFolderPath { get; set; }
|
||||
}
|
||||
|
||||
public class MigrationAssessmentResult
|
||||
|
||||
Reference in New Issue
Block a user