ApplicationInsightsBotTelemetryClient Class
- java.
lang. Object - com.
microsoft. bot. applicationinsights. ApplicationInsightsBotTelemetryClient
- com.
Implements
public class ApplicationInsightsBotTelemetryClient
implements BotTelemetryClient
A logging client for bot telemetry.
Constructor Summary
| Constructor | Description |
|---|---|
| ApplicationInsightsBotTelemetryClient(String instrumentationKey) |
Initializes a new instance of the BotTelemetryClient. |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
ApplicationInsightsBotTelemetryClient
public ApplicationInsightsBotTelemetryClient(String instrumentationKey)
Initializes a new instance of the BotTelemetryClient.
Parameters:
Method Details
flush
public void flush()
Flushes the in-memory buffer and any metrics being pre-aggregated.
getTelemetryConfiguration
public TelemetryConfiguration getTelemetryConfiguration()
Provides access to the Application Insights configuration that is running here. Allows developers to adjust the options.
Returns:
trackAvailability
public void trackAvailability(String name, OffsetDateTime timeStamp, Duration duration, String runLocation, boolean success, String message, Map
Send information about availability of an application.
Parameters:
trackDependency
public void trackDependency(String dependencyTypeName, String target, String dependencyName, String data, OffsetDateTime startTime, Duration duration, String resultCode, boolean success)
Send information about an external dependency (outgoing call) in the application.
Parameters:
trackDialogView
public void trackDialogView(String dialogName, Map
We implemented this method calling the tracePageView method from ApplicationInsightsBotTelemetryClient as the IBotPageViewTelemetryClient has not been implemented.
Parameters:
trackEvent
public void trackEvent(String eventName, Map
Logs custom events with extensible named fields.
Parameters:
trackException
public void trackException(Exception exception, Map
Logs a system exception.
Parameters:
trackPageView
public void trackPageView(String dialogName, Map
Logs a dialog entry / as an Application Insights page view.
Parameters:
trackTrace
public void trackTrace(String message, Severity severityLevel, Map
Send a trace message.
Parameters: