| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Server":{"NumOfProcessors":0,"MachineName":"String","Os":"String","Is64BitProcess":false,"Is64BitOperatingSystem":false,"SystemPageSize":0,"UptimeTicks":0,"ClrVersion":"String","MappedProcessMemory":0}}