| GET | /devops/api/diagnostics/server |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.DTO.Diagnostics.Api.Request
Imports BH.CloudAPI.DTO.Diagnostics.Api.Response
Imports BH.CloudAPI.DTO.Diagnostics.Api
Namespace Global
Namespace BH.CloudAPI.DTO.Diagnostics.Api
Public Partial Class ServerInfo
Public Overridable Property NumOfProcessors As Integer
Public Overridable Property MachineName As String
Public Overridable Property Os As String
Public Overridable Property Is64BitProcess As Boolean
Public Overridable Property Is64BitOperatingSystem As Boolean
Public Overridable Property SystemPageSize As Integer
Public Overridable Property UptimeTicks As Integer
Public Overridable Property ClrVersion As String
Public Overridable Property MappedProcessMemory As Long
End Class
End Namespace
Namespace BH.CloudAPI.DTO.Diagnostics.Api.Request
Public Partial Class ServerInfoRq
End Class
End Namespace
Namespace BH.CloudAPI.DTO.Diagnostics.Api.Response
Public Partial Class ServerInfoRs
Public Overridable Property Server As ServerInfo
End Class
End Namespace
End Namespace
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
}
}