Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Task 실행에 사용하는 객체.

Send Object

[Fields]

Key

Type

Required

Description

app_code

String

Required

실행할 앱의 종류를 구분하는 코드. See app_code table

inputs [ ]

String

Application-specific input resources. 복수개 입력을 URI 형식으로 나열함. 미입력 시 앱의 기본동작에 위임.

contexts [ ]

String

Application-specific input contexts or configurations

[JSON Body]

{
  "app_code": 1000
    "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",
  ]
}

  • No labels