智能多媒体服务

  • 智能多媒体 > 产品手册 > 开发指南 >接收消息通知

    接收消息通知

    最近更新时间:2020-02-12 15:39:49

    事件通知功能,能够对管理员关心的任务处理相关的操作,及时进行消息通知。当前提供的事件通知如下:

    事件类型 事件说明
    任务处理结果 • 任务执行成功
    • 任务执行失败

    事件通知是异步进行的,不影响正常的操作。支持以回调方式将消息推送到指定URL。

    示例

    通知内容,如下所示:

    {
        "id": "z0.AC11000120BD46928D5E155129025B1D",
        "pipeline": "1810775223.avvod-pipeline",
        "notify": {
            "url": "lfwergwrgwerg"
        },
        "input": {
            "type": "kodo",
            "source": {
                "bucket": "privatebucket_dora_k8s_spock_test",
                "key": "upload.wmv"
            }
        },
        "status": "FINISHED",
        "success": true,
        "result": {
            "code": 0,
            "desc": "The fop was completed successfully",
            "reqid": "2hsAAK4SOuHIzOcV"
        },
        "ops": [
            {
                "op": {
                    "type": "transcode",
                    "params": {
                        "cmd": "avthumb",
                        "format": "mp4"
                    },
                    "save": {
                        "type": "kodo",
                        "info": {
                            "bucket": "publicbucket_dora_k8s_spock_test",
                            "key_template": "{{.fname}}23.mp4"
                        }
                    }
                },
                "result": {
                    "code": 0,
                    "desc": "The fop was completed successfully",
                    "hash": "FkQybCupQoieHwwctvsBNRki3W3h",
                    "bucket": "publicbucket_dora_k8s_spock_test",
                    "key": "upload23.mp4",
                    "returnOld": 0
                }
            }
        ],
        "version": "v2",
        "force": "1"
    }
    
    以上内容是否对您有帮助?
  • Qvm free helper
    Close