NullBotTelemetryClient Class

  • java.lang.Object
    • com.microsoft.bot.builder.NullBotTelemetryClient

Implements

public class NullBotTelemetryClient
implements BotTelemetryClient

A no-op telemetry client.

Constructor Summary

Constructor Description
NullBotTelemetryClient()

Method Summary

Modifier and Type Method and Description
void flush()

Flushes the in-memory buffer and any metrics being pre-aggregated.

void trackAvailability(String name, OffsetDateTime timeStamp, Duration duration, String runLocation, boolean success, String message, Map<String,String> properties, Map<String,Double> metrics)

Send information about availability of an application.

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.

void trackDialogView(String dialogName, Map<String,String> properties, Map<String,Double> metrics)

Log a DialogView using the TrackPageView method on the IBotTelemetryClient if IBotPageViewTelemetryClient has been implemented.

void trackEvent(String eventName, Map<String,String> properties, Map<String,Double> metrics)

Logs custom events with extensible named fields.

void trackException(Exception exception, Map<String,String> properties, Map<String,Double> metrics)

Logs a system exception.

void trackTrace(String message, Severity severityLevel, Map<String,String> properties)

Send a trace message.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

NullBotTelemetryClient

public NullBotTelemetryClient()

Method Details

flush

public void flush()

Flushes the in-memory buffer and any metrics being pre-aggregated.

trackAvailability

public void trackAvailability(String name, OffsetDateTime timeStamp, Duration duration, String runLocation, boolean success, String message, Map properties, Map metrics)

Send information about availability of an application.

Parameters:

name
timeStamp
duration
runLocation
success
message
properties
metrics

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:

dependencyTypeName
target
dependencyName
data
startTime
duration
resultCode
success

trackDialogView

public void trackDialogView(String dialogName, Map properties, Map metrics)

Log a DialogView using the TrackPageView method on the IBotTelemetryClient if IBotPageViewTelemetryClient has been implemented. Alternatively log the information out via TrackTrace.

Parameters:

dialogName
properties
metrics

trackEvent

public void trackEvent(String eventName, Map properties, Map metrics)

Logs custom events with extensible named fields.

Parameters:

eventName
properties
metrics

trackException

public void trackException(Exception exception, Map properties, Map metrics)

Logs a system exception.

Parameters:

exception
properties
metrics

trackTrace

public void trackTrace(String message, Severity severityLevel, Map properties)

Send a trace message.

Parameters:

message
severityLevel
properties

Applies to