public class LogTelemetryClientProxy extends java.lang.Object implements TelemetryClientProxy
Constructor and Description |
---|
LogTelemetryClientProxy(java.lang.String instrumentationKey)
Constructs new telemetry client proxy instance.
|
LogTelemetryClientProxy(com.microsoft.applicationinsights.TelemetryClient telemetryClient,
java.lang.String instrumentationKey)
Constructs new telemetry client proxy instance with the given client.
|
Modifier and Type | Method and Description |
---|---|
com.microsoft.applicationinsights.TelemetryClient |
getTelemetryClient()
Gets the telemetry client.
|
boolean |
isInitialized()
Gets a value indicating whether the proxy has been initialized.
|
void |
sendEvent(ApplicationInsightsEvent event)
Sends the given event to AI.
|
public LogTelemetryClientProxy(com.microsoft.applicationinsights.TelemetryClient telemetryClient, java.lang.String instrumentationKey)
telemetryClient
- The telemetry client.instrumentationKey
- The instrumentation key.public LogTelemetryClientProxy(java.lang.String instrumentationKey)
instrumentationKey
- The instrumentation key for sending the events.public boolean isInitialized()
TelemetryClientProxy
isInitialized
in interface TelemetryClientProxy
public void sendEvent(ApplicationInsightsEvent event)
sendEvent
in interface TelemetryClientProxy
event
- The event to send.public com.microsoft.applicationinsights.TelemetryClient getTelemetryClient()
getTelemetryClient
in interface TelemetryClientProxy