我正在使用 OrionSDK,并且我有一个 python 查询不断返回此错误: mismatched input 'Orion' Expecting 'FROM' 。这是查询。不确定是什么原因造成的。提前致谢!
'''results = swis.query("SELECT "
"n.Caption AS NodeCaption"
",n.IP_Address AS IPAddress"
",n.NodeID"
",a.ApplicationID"
",n.Uri AS NodeUri"
",n.Uri AS AppUri"
"FROM Orion.Nodes n"
"JOIN Orion.APM.Application a ON n.NodeID = a.NodeID"
"JOIN Orion.APM.ApplicationTemplate at ON a.ApplicationTemplateID = at.ApplicationTemplateID"
"WHERE at.Name IN('Process_Monitor - Dynatrace Linux OneAgent', 'Service_Monitor - Dynatrace "
"OneAgent Service'") '''