Task 실행에 사용하는 객체.
Send Object
[Fields]
Key | Type | Required | Description |
---|---|---|---|
app_code | String | Required | 실행할 앱의 종류를 구분하는 코드. See app_code table |
host | String | Required | MD로 부터 RPC recv_callback을 받을 PlayCan서버 경로 |
md_host | String | Required | VI로 부터 RPC recv_callback을 받을 MD서버 경로 |
vi_host | String | Required | MD가 RPC async_send를 보낼 VI 서버 경로 |
inputs [ ] | String | Application-specific input resources. 복수개 입력을 URI 형식으로 나열함. 미입력 시 앱의 기본동작에 위임. | |
contexts [ ] | String | Application-specific input contexts or configurations |
[JSON Body]
{ "app_code": 1000, "host":"http://localhost:1234", "md_host":"http://localhost:17250", "vi_host":"http://localhost:9876", "inputs": [ "rtsp://ec2-52-32-247-84.us-west-2.compute.amazonaws.com/stream?url=[rtsp://98.210.72.185:554]&id=admin&pw=admin", "192.168.0.37" // 알람을 받을 호스트 ], "contexts": [ {"alarm_interval_hint": 5000}, {"annotation_level": 3} ] }
Receive Object
[Fields]
Parameter | Type | Required | Description |
---|---|---|---|
result | String | Required | 실행결과 |
outputs [ ] | String | 결과 데이터 | |
logs [ ] | String | 결과 로그. |
[JSON Body]
{ "app_instance_id": "98gduio4l2j9o08fusd9", // 앱 서버가 직접 생성한 인스턴스 ID "result": "succeed", "outputs": [ "rtsp://211.23.45.179/video_0" ] "logs": [ "task is now running", ] }