0

嗨,我正在尝试按该运行 ID 对与运行 ID 相关的一些值进行分组。

所以我所拥有的是:

AzureDiagnostics
| where resource_workflowName_s =="RABE_REST_CARUS_V2"
| where resource_actionName_s  != "" 
   and resource_actionName_s == "Initialize_variable" 
   or resource_actionName_s == "Compose" 
   or resource_actionName_s == "RabeValidationCarusV2Test" 
   or resource_actionName_s == "HTTP"
| where status_s  == "Succeeded" 
| extend Duration = iff(isnotempty(endTime_t), todouble(endTime_t - startTime_t ) / 10000000, double(null))
| project RunId = resource_runId_s, Actions = resource_actionName_s , Duration

结果我得到了这个:

在此处输入图像描述

我想要的是总结与一个 RunID 相关的操作的持续时间我现在拥有的是每个 runID 一个操作及其持续时间......

希望这有意义吗?

4

1 回答 1

0

找到了答案:

AzureDiagnostics
| where resource_workflowName_s =="RABE_REST_CARUS_V2"
| where resource_actionName_s != "" 
    and resource_actionName_s == "Initialize_variable" 
    or resource_actionName_s == "Compose" 
    or resource_actionName_s == "RabeValidationCarusV2Test" 
    or resource_actionName_s == "HTTP"
| where status_s  == "Succeeded" 
| extend Duration = iff(isnotempty(endTime_t), todouble(endTime_t - startTime_t ) / 10000000, double(null))
| project RunId = resource_runId_s, Actions = toobject(resource_actionName_s) , Duration
| summarize Actions = makeset(Actions), Durations = makeset(Duration), DurationSum = sum(Duration) by RunId 
| where DurationSum > 15
于 2018-03-15T15:31:15.013 回答