POST http://IP-адрес:порт/префикс/grpc

Тело запроса:

{
    "method": "axxonsoft.bl.vmda.VMDAService.ExecuteQuery",
    "data": {
        "access_point": "hosts/DESKTOP-FQETIKR/VMDA_DB.0/Database",
        "camera_ID": "AVDetector.1/SourceEndpoint.vmda",
        "schema_ID": "vmda_schema",
        "dt_posix_start_time": "20200916T114345.368",
        "dt_posix_end_time": "20200918T134347.240",
        "query": "figure fZone=polygon(0.3,0.3,0.7,0.3,0.7,0.7,0.3,0.7); figure fDir=(ellipses(-10000, -10000, 10000, 10000) - ellipses(-0, -0, 0, 0));set r = group[obj=vmda_object] { res = or(fZone((obj.left + obj.right) / 2, obj.bottom)) }; result = r.res;",
        "language": "EVENT_BASIC"
    }
}

Пример ответа:

--ngpboundary
Content-Type: application/json; charset=utf-8
Content-Length: 6271

{
 "intervals": [
  {
   "limit": {
    "begin_time": "20200917T065039.101000",
    "end_time": "20200917T065041.181000"
   },
   "objects": [
    {
     "id": "11",
     "left": 0.60833333333333328,
     "top": 0.28125,
     "right": 0.72777777777777775,
     "bottom": 0.328125
    }
   ]
  },
  {
   "limit": {
    "begin_time": "20200917T065041.181000",
    "end_time": "20200917T065041.541000"
   },
   "objects": [
    {
     "id": "20",
     "left": 0.56111111111111112,
     "top": 0.34722222222222221,
     "right": 0.67777777777777781,
     "bottom": 0.38541666666666663
    }
   ]
  },
  {
   "limit": {
    "begin_time": "20200917T065047.741000",
    "end_time": "20200917T065047.821000"
   }
  • No labels