| GET | /devops/api/diagnostics/server |
|---|
import Foundation
import ServiceStack
public class ServerInfoRq : Codable
{
required public init(){}
}
public class ServerInfoRs : Codable
{
public var server:ServerInfo?
required public init(){}
}
public class ServerInfo : Codable
{
public var numOfProcessors:Int?
public var machineName:String?
public var os:String?
public var is64BitProcess:Bool?
public var is64BitOperatingSystem:Bool?
public var systemPageSize:Int?
public var uptimeTicks:Int?
public var clrVersion:String?
public var mappedProcessMemory:Int?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /devops/api/diagnostics/server HTTP/1.1 Host: devapi.billhighway.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Server:
{
NumOfProcessors: 0,
MachineName: String,
Os: String,
Is64BitProcess: False,
Is64BitOperatingSystem: False,
SystemPageSize: 0,
UptimeTicks: 0,
ClrVersion: String,
MappedProcessMemory: 0
}
}