Azure Media Services v3-缺少事件网格作业进度事件



Azure Media Services v3-事件网格订阅未报告作业进度事件。

创建了一个端点类型为WebHook的事件网格订阅-订阅了All事件。

期望获取进度事件,但只获取作业状态更改。

我如何接收工作进度

仅收到以下作业事件。

  • Microsoft.Media.JobScheduled
  • Microsoft.Media.JobOutputStateChange
  • Microsoft.Media.JobOutputStateChange
  • Microsoft.Media.JobStateChange
  • Microsoft.Media.JobProcessing
  • Microsoft.Media.JobOutputProcessing
  • Microsoft.Media.JobOutputFinished
  • Microsoft.Media.JobOutputStateChange
  • Microsoft.Media.JobStateChange
  • Microsoft.Media.JobFinished

原始事件数据

{
"topic": "/subscriptions/1234/resourceGroups/ResGroup/providers/Microsoft.Media/mediaservices/amsaccount",
"subject": "transforms/Transcribe-VideoAnalyzerPreset-Transform/jobs/Transcribe AzureTest TestFilter 071min 636795822392514253",
"eventType": "Microsoft.Media.JobOutputProcessing",
"eventTime": "2018-12-05T04:52:30.295037",
"id": "bc381a10-6ceb-4e0b-9401-a1783dbd7248",
"data": {
"previousState": "Scheduled",
"output": {
"@odata.type": "#Microsoft.Media.JobOutputAsset",
"assetName": "d08ebed45dd54256b7fc7448dd466c96",
"error": null,
"label": "VideoAnalyzerPreset_0",
"progress": 0,
"state": "Processing"
},
"jobCorrelationData": {
"TransformName": "Transcribe-VideoAnalyzerPreset-Transform"
}
},
"dataVersion": "1.0",
"metadataVersion": "1"
}
{
"topic": "/subscriptions/1234/resourceGroups/ResGroup/providers/Microsoft.Media/mediaservices/amsaccount",
"subject": "transforms/Transcribe-VideoAnalyzerPreset-Transform/jobs/Transcribe AzureTest TestFilter 071min 636795822392514253",
"eventType": "Microsoft.Media.JobOutputFinished",
"eventTime": "2018-12-05T04:55:28.0774072",
"id": "eba19e9c-1ee2-4b22-8844-1cf8366f56cb",
"data": {
"previousState": "Processing",
"output": {
"@odata.type": "#Microsoft.Media.JobOutputAsset",
"assetName": "d08ebed45dd54256b7fc7448dd466c96",
"error": null,
"label": "VideoAnalyzerPreset_0",
"progress": 100,
"state": "Finished"
},
"jobCorrelationData": {
"TransformName": "Transcribe-VideoAnalyzerPreset-Transform"
}
},
"dataVersion": "1.0",
"metadataVersion": "1"
}

正如@AnilMurching所说,根据媒体服务事件的Azure事件网格架构,Monitoring Job Output State Changes支持从作业事件架构中获取进度属性,但不估计时间。

要获得作业的时间估计,一种变通方法是使用资产大小、其他作业的平均时间成本和其他有用的参数进行计算,以获得近似值。

最新更新