Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

서버가 앱 인스턴스 실행결과 통지하기 위해 종료에 사용하는 객체.

MD가 Task를 실행할 때 여러개 절차로 진행되는 과정에서, 앱 인스턴스의 실행여부를 확인 후 다음 절차를 진행합니다.

그러므로 MD가 앱 서버로 run operation 요청 후, 다시 이 객체를 전달 받아야 합니다.

Fields

...

Parameter

Send Object

[Fields]

Type

Required

Description

runapp_instance_resultid

String

Requiredasync_run_app_instance 실행결과

종료시킬 앱 인스턴스 ID

[JSON Body]

Code Block
{
  "app_instance_id": "98gduio4l2j9o08fusd9"
}

Receive Object

[Fields]

Parameter

Type

Required

Description

app_instance_id

String

Required

앱 인스턴스 ID

outputs [ ]result

String

Required

앱의 출력 결과값들

결과값들의 형태는 앱마다 고유하게 정의 됨

실행결과

logs [ ]

String

결과 로그. 자유 형식.

[JSON Body]

Code Block
{
  "run_result":
"succeed",   "app_instance_id": "98gduio4l2j9o08fusd9",        // 앱 서버가 직접 생성한 인스턴스 ID
  "outputsresult": [     "rtsp://220.11.59.183:554/annotated_video_0",   // 출력 비디오 RTSP URI #0
    "rtsp://220.11.59.183:554/annotated_video_1",   // 출력 비디오 RTSP URI #1
    "https://220.11.59.183/nk2/people_counting/12973/statistics/674"  // 분석통계에 직접 접근할 수 있는 URI
  ],
  ""succeed",
  "logs": [
    "helloNK2 world",instance has    "my name is nk2closed gracefully"
  ]
}