ApplicationInsightsBotTelemetryClient 类
- java.
lang. Object - com.
microsoft. bot. applicationinsights. ApplicationInsightsBotTelemetryClient
- com.
实现
public class ApplicationInsightsBotTelemetryClient
implements BotTelemetryClient
用于机器人遥测的日志记录客户端。
构造函数摘要
构造函数 | 说明 |
---|---|
ApplicationInsightsBotTelemetryClient(String instrumentationKey) |
初始化 BotTelemetryClient 的新实例。 |
方法摘要
方法继承自 java.lang.Object
构造函数详细信息
ApplicationInsightsBotTelemetryClient
public ApplicationInsightsBotTelemetryClient(String instrumentationKey)
初始化 BotTelemetryClient 的新实例。
Parameters:
方法详细信息
flush
public void flush()
刷新内存中缓冲区和预聚合的任何指标。
getTelemetryConfiguration
public TelemetryConfiguration getTelemetryConfiguration()
提供对此处运行的 Application Insights 配置的访问权限。 允许开发人员调整选项。
Returns:
trackAvailability
public void trackAvailability(String name, OffsetDateTime timeStamp, Duration duration, String runLocation, boolean success, String message, Map
发送有关应用程序可用性的信息。
Parameters:
trackDependency
public void trackDependency(String dependencyTypeName, String target, String dependencyName, String data, OffsetDateTime startTime, Duration duration, String resultCode, boolean success)
(应用程序中的传出调用) 发送有关外部依赖项的信息。
Parameters:
trackDialogView
public void trackDialogView(String dialogName, Map
我们实现了此方法,从 ApplicationInsightsBotTelemetryClient 调用 tracePageView 方法,因为尚未实现 IBotPageViewTelemetryClient。
Parameters:
trackEvent
public void trackEvent(String eventName, Map
使用可扩展的命名字段记录自定义事件。
Parameters:
trackException
public void trackException(Exception exception, Map
记录系统异常。
Parameters:
trackPageView
public void trackPageView(String dialogName, Map
将对话框条目 / 记录为 Application Insights 页面视图。
Parameters:
trackTrace
public void trackTrace(String message, Severity severityLevel, Map
发送跟踪消息。
Parameters: