gpt4 book ai didi

rest - SumoLogic RESTFul API C# 客户端

转载 作者:行者123 更新时间:2023-12-04 23:45:27 25 4
gpt4 key购买 nike

有没有人知道我们可以用来运行针对 SumoLogic 的查询的 C# 客户端?我看到他们有一个 Java Client但找不到相应的 C# 客户端。

最佳答案

您可以使用 SumoLogicMessageSender类(class)。
你可以找到使用这个类 here .

但是,我不建议像原始代码中那样使用 GetResult() :

// this maintains synchronous behavior for single event scenarios.
this.SumoLogicMessageSender
.TrySend(bodyBuilder.ToString(), this.SourceName, this.SourceCategory, this.SourceHost)
.GetAwaiter()
.GetResult();

关于rest - SumoLogic RESTFul API C# 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40415054/

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