//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlServer.Management.Assessment;
namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts
{
///
/// Describes an item returned by SQL Assessment RPC methods
///
public class MigrationAssessmentInfo
{
///
/// Gets or sets assessment ruleset version.
///
public string RulesetVersion { get; set; }
///
/// Gets or sets assessment ruleset name
///
public string RulesetName { get; set; }
///
/// Gets or sets assessed target's type.
/// Supported values: 1 - server, 2 - database.
///
public SqlObjectType TargetType { get; set; }
///
/// Gets or sets the assessed object's name.
///
public string TargetName { get; set; }
///
/// Gets or sets check's ID.
///
public string CheckId { get; set; }
///
/// Gets or sets tags assigned to this item.
///
public string[] Tags { get; set; }
///
/// Gets or sets a display name for this item.
///
public string DisplayName { get; set; }
///
/// Gets or sets a brief description of the item's purpose.
///
public string Description { get; set; }
///
/// Gets or sets a containing
/// an link to a page providing detailed explanation
/// of the best practice.
///
public string HelpLink { get; set; }
///
/// Gets or sets a indicating
/// severity level assigned to this items.
/// Values are: "Information", "Warning", "Critical".
///
public string Level { get; set; }
public string Message { get; set; }
public string AppliesToMigrationTargetPlatform { get; set; }
public string IssueCategory { get; set; }
public ImpactedObjectInfo[] ImpactedObjects { get; set; }
}
}