Billhighway Cloud API

<back to all web services

ServerInfoRq

The following routes are available for this service:
GET/devops/api/diagnostics/server
namespace BH.CloudAPI.DTO.Diagnostics.Api

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ServerInfo() = 
        member val NumOfProcessors:Int32 = new Int32() with get,set
        member val MachineName:String = null with get,set
        member val Os:String = null with get,set
        member val Is64BitProcess:Boolean = new Boolean() with get,set
        member val Is64BitOperatingSystem:Boolean = new Boolean() with get,set
        member val SystemPageSize:Int32 = new Int32() with get,set
        member val UptimeTicks:Int32 = new Int32() with get,set
        member val ClrVersion:String = null with get,set
        member val MappedProcessMemory:Int64 = new Int64() with get,set

    [<AllowNullLiteral>]
    type ServerInfoRs() = 
        member val Server:ServerInfo = null with get,set

    [<AllowNullLiteral>]
    type ServerInfoRq() = 
        class end

F# ServerInfoRq DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + 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
	}
}