| GET | /devops/api/diagnostics/server |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BH.CloudAPI.DTO.Diagnostics.Api.Request;
using BH.CloudAPI.DTO.Diagnostics.Api.Response;
using BH.CloudAPI.DTO.Diagnostics.Api;
namespace BH.CloudAPI.DTO.Diagnostics.Api
{
public partial class ServerInfo
{
public virtual int NumOfProcessors { get; set; }
public virtual string MachineName { get; set; }
public virtual string Os { get; set; }
public virtual bool Is64BitProcess { get; set; }
public virtual bool Is64BitOperatingSystem { get; set; }
public virtual int SystemPageSize { get; set; }
public virtual int UptimeTicks { get; set; }
public virtual string ClrVersion { get; set; }
public virtual long MappedProcessMemory { get; set; }
}
}
namespace BH.CloudAPI.DTO.Diagnostics.Api.Request
{
public partial class ServerInfoRq
{
}
}
namespace BH.CloudAPI.DTO.Diagnostics.Api.Response
{
public partial class ServerInfoRs
{
public virtual ServerInfo Server { get; set; }
}
}
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
}
}