| GET | /devops/api/diagnostics/server |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class ServerInfoRq
{
}
open class ServerInfoRs
{
var Server:ServerInfo? = null
}
open class ServerInfo
{
var NumOfProcessors:Int? = null
var MachineName:String? = null
var Os:String? = null
var Is64BitProcess:Boolean? = null
var Is64BitOperatingSystem:Boolean? = null
var SystemPageSize:Int? = null
var UptimeTicks:Int? = null
var ClrVersion:String? = null
var MappedProcessMemory:Long? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Server":{"NumOfProcessors":0,"MachineName":"String","Os":"String","Is64BitProcess":false,"Is64BitOperatingSystem":false,"SystemPageSize":0,"UptimeTicks":0,"ClrVersion":"String","MappedProcessMemory":0}}