【问题标题】:Azure Media Services v3 - Event Grid Job progress events missingAzure 媒体服务 v3 - 缺少事件网格作业进度事件
【发布时间】:2018-12-11 15:41:05
【问题描述】:

Azure 媒体服务 v3 - 事件网格订阅未报告作业进度事件。

创建了一个端点类型为 Web Hook 的事件网格订阅 - 订阅了 所有 事件。

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

我如何获得工作进度?

收到的唯一作业事件如下。

  • 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"
}

【问题讨论】:

  • 我们正在努力部署服务更新以支持 JobOutput 进度事件。部署完成后将报告。谢谢
  • 有估价吗?例如几周、几个月?

标签: azure-media-services


【解决方案1】:

根据Azure Event Grid schemas for Media Services events,正如@AnilMurching 所说,Monitoring Job Output State Changes 支持从工作事件模式中获取进度属性,但没有估计时间。

要获得一项工作的时间估算,一种解决方法是计算资产规模、其他工作的平均时间成本和其他有用的参数以获得近似值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-23
    • 2020-11-11
    • 2013-08-06
    • 2022-01-15
    • 2021-02-19
    相关资源
    最近更新 更多