gpt4 book ai didi

kql - Kusto 设置查询的变量输出

转载 作者:行者123 更新时间:2023-12-05 04:57:52 31 4
gpt4 key购买 nike

希望定义一个变量来保存查询的输出,然后从中查询跟踪。像这样:

let start=datetime("2020-10-07T15:01:00.000Z");
let end=datetime("2020-10-09T13:20:00.000Z");
let timeGrain=1h;
let dataset = dependencies
| where timestamp > start and timestamp < end and ['type'] == 'HTTP' and success == false
| where name contains "mgw/capture"
| project operation_ParentId
traces
| join kind=inner(dataset) on operation_ParentId

这可能吗?

最佳答案

是的,这是可能的,您甚至几乎做对了,您只是在相关 let 语句的末尾缺少一个 ;

试试这个:

let start=datetime("2020-10-07T15:01:00.000Z");
let end=datetime("2020-10-09T13:20:00.000Z");
let timeGrain=1h;
let dataset = dependencies
| where timestamp > start and timestamp < end and ['type'] == 'HTTP' and success == false
| where name contains "mgw/capture"
| project operation_ParentId;
traces
| join kind=inner(dataset) on operation_ParentId

关于kql - Kusto 设置查询的变量输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64281508/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com