AmlComputeJobEvent 表的查询
有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询。
获取失败的作业
获取前 100 个失败的作业。
AmlComputeJobEvent
| where EventType == "JobFailed"
| project TimeGenerated, ClusterId, EventType, ExecutionState, ToolType, JobErrorMessage, ErrorDetails
| limit 100
获取作业的记录
获取特定作业名称的前 100 条记录。
AmlComputeJobEvent
| where JobName == "automl_a9940991-dedb-4262-9763-2fd08b79d8fb_setup"
| project TimeGenerated, ClusterId, EventType, ExecutionState, ToolType
| limit 100
显示前 5 个最长的作业运行
显示前 5 个最长的作业运行。
AmlComputeJobEvent
| where OperationName == "JobSubmitted"
| join kind = inner (AmlComputeJobEvent
| where OperationName == "JobSucceeded"
| project StopTime=TimeGenerated, JobId)
on JobId
|project Duration=(StopTime-TimeGenerated), ExperimentName, WorkspaceName, ClusterName, JobName
|top 5 by Duration desc nulls last