Monitor Report Server

<back to all web services

DeviceSnapshotDataRequest

The following routes are available for this service:
GET,POST/device/snapshotdata
DeviceSnapshotDataRequest Parameters:
NameParameterData TypeRequiredDescription
DeviceIdbodyintNo
FrombodyDateTimeNo
TobodyDateTimeNo
TimeZoneIdbodystringNo
ApiRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo

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.

POST /device/snapshotdata HTTP/1.1 
Host: api.v3.monitorsystem.ru 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	DeviceId: 0,
	From: 0001-01-01,
	To: 0001-01-01,
	TimeZoneId: String,
	ApiKey: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

[
	{
		Analog: 
		{
			AIN1: 0,
			AIN2: 0,
			AIN3: 0,
			AIN4: 0,
			AIN5: 0,
			AIN6: 0,
			AIN7: 0,
			AIN8: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		Auxiliary: 
		{
			AUX1: 0,
			AUX2: 0,
			AUX3: 0,
			AUX4: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		Gps: 
		{
			Lat: 0,
			Lon: 0,
			Height: 0,
			Mileage: 0,
			Speed: 0,
			Direction: 0,
			Satellites: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		Counter: 
		{
			CNT1: 0,
			CNT2: 0,
			CNT3: 0,
			CNT4: 0,
			CNT5: 0,
			CNT6: 0,
			CNT7: 0,
			CNT8: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		Data: 
		{
			DATA1: 0,
			DATA2: 0,
			DATA3: 0,
			DATA4: 0,
			DATA5: 0,
			DATA6: 0,
			DATA7: 0,
			DATA8: 0,
			DATA9: 0,
			DATA10: 0,
			DATA11: 0,
			DATA12: 0,
			DATA13: 0,
			DATA14: 0,
			DATA15: 0,
			DATA16: 0,
			DATA17: 0,
			DATA18: 0,
			DATA19: 0,
			DATA20: 0,
			DATA21: 0,
			DATA22: 0,
			DATA23: 0,
			DATA24: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		Digital: 
		{
			DIN: 0,
			DeviceId: 0,
			ServerTime: 0001-01-01,
			DeviceTime: 0001-01-01,
			Valid: False
		},
		DeviceId: 0,
		ServerTime: 0001-01-01,
		DeviceTime: 0001-01-01,
		Valid: False
	}
]