MCT.IT.MonitorAPI

<back to all web services

GetMainRequest

The following routes are available for this service:
GET/getmaininfo
GetMainRequest Parameters:
NameParameterData TypeRequiredDescription
ServerIdquerystringNo
StartTimequerystringNo
EndTimequerystringNo
GetMainResponse Parameters:
NameParameterData TypeRequiredDescription
CPUformCPUReturnTypeNo
PageMemoryformPageMemoryReturnTypeNo
PhysicalMemoryformPhysicalMemoryReturnTypeNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
IsSuccessformboolNo
ErrorMessageformstringNo
CPUReturnType Parameters:
NameParameterData TypeRequiredDescription
CPUCounterformList<double>No
DetectTimeformList<string>No
MaxSizeformint?No
PageMemoryReturnType Parameters:
NameParameterData TypeRequiredDescription
PageMemoryformList<double>No
DetectTimeformList<string>No
MaxSizeformint?No
PhysicalMemoryReturnType Parameters:
NameParameterData TypeRequiredDescription
PhysicalMemoryformList<double>No
DetectTimeformList<string>No
MaxSizeformint?No

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 /getmaininfo HTTP/1.1 
Host: monitorapi.mcttechnology.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CPU: 
	{
		CPUCounter: 
		[
			0
		],
		DetectTime: 
		[
			String
		],
		MaxSize: 0
	},
	PageMemory: 
	{
		PageMemory: 
		[
			0
		],
		DetectTime: 
		[
			String
		],
		MaxSize: 0
	},
	PhysicalMemory: 
	{
		PhysicalMemory: 
		[
			0
		],
		DetectTime: 
		[
			String
		],
		MaxSize: 0
	},
	IsSuccess: False,
	ErrorMessage: String
}