Adding cpu count and ram size to server info (#1220)

* adding network file validator contract

* Adding additional properties to serverInfo

* Renaming to serversysinfo

* fixing var name

* Changed to smo to get the properties

* Fixing casting error

* renaming to sysinfo

* Removing unused sql scripts

* Throwing an error and renaming classes

* Changing Physicalmemory prop name from kb to mb

* pushing prop name change

* fixing comment
This commit is contained in:
Aasim Khan
2021-07-13 12:57:53 -07:00
committed by GitHub
parent 1f7da97e6c
commit 539e47b40f
3 changed files with 50 additions and 4 deletions

View File

@@ -471,7 +471,9 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
AzureVersion = serverInfo.AzureVersion,
OsVersion = serverInfo.OsVersion,
MachineName = serverInfo.MachineName,
Options = serverInfo.Options,
CpuCount = serverInfo.CpuCount,
PhysicalMemoryInMB = serverInfo.PhysicalMemoryInMB,
Options = serverInfo.Options
};
connectionInfo.IsCloud = serverInfo.IsCloud;
connectionInfo.MajorVersion = serverInfo.ServerMajorVersion;

View File

@@ -67,6 +67,16 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
/// </summary>
public string MachineName { get; set; }
/// <summary>
/// The CPU count of the host running the server.
/// </summary>
public int CpuCount;
/// <summary>
/// The physical memory of the host running the server in MBs.
/// </summary>
public int PhysicalMemoryInMB;
/// <summary>
/// Server options
/// </summary>