mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-11 10:38:32 -05:00
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:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user