需要找出同时安装了 AMA 和 MMA 的服务器。
心跳 |由计算机总结lastHeartbeat = max(TimeGenerate) |项目计算机,lastHeartbeat,AgentType = lastHeartbeat.Properties [“agentType”] |其中 tostring(AgentType) in ("AMA", "MMA") |通过计算机总结 AgentTypes = make_set(AgentType) |其中 array_length(AgentTypes) == 2
路径表达式 Properties_agentType 源必须是“dynamic”类型的标量。相反,收到了 datetime 类型的源
上述错误的原因是您试图从
Properties["agentType"]
类型列而不是从 动态类型列获取
datetime
。
Heartbeat
表中的
Timegenerated
列是日期时间类型,因此 lastHeartbeat
的类型也与下面的示例相同。
因此,为了避免错误,请确保您仅访问数组类型的属性。