TelemetryHandler Class
- java.
lang. Object - com.
microsoft. graph. httpcore. TelemetryHandler
- com.
Implements
public class TelemetryHandler implements okhttp3.Interceptor
Middleware responsible for adding telemetry information on SDK usage Note: the telemetry only collects anonymous information on SDK version and usage. No personal information is collected.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final java.lang.String |
ANDROID_VERSION_PREFIX
Android version prefix |
static final java.lang.String |
CLIENT_REQUEST_ID
The client request ID header |
static final java.lang.String |
GRAPH_VERSION_PREFIX
Version prefix |
static final java.lang.String |
JAVA_VERSION_PREFIX
Java version prefix |
static final java.lang.String |
SDK_VERSION
Http request header to send the telemetry infromation with |
static final java.lang.String |
VERSION
Current SDK version |
Constructor Summary
Constructor | Description | |
---|---|---|
TelemetryHandler() |
Method Summary
Modifier and Type | Method and Description |
---|---|
okhttp3.Response | intercept(Interceptor.Chain chain) |
Methods inherited from java.lang.Object
Field Details
ANDROID_VERSION_PREFIX
public static final String ANDROID_VERSION_PREFIX
Android version prefix
CLIENT_REQUEST_ID
public static final String CLIENT_REQUEST_ID
The client request ID header
GRAPH_VERSION_PREFIX
public static final String GRAPH_VERSION_PREFIX
Version prefix
JAVA_VERSION_PREFIX
public static final String JAVA_VERSION_PREFIX
Java version prefix
SDK_VERSION
public static final String SDK_VERSION
Http request header to send the telemetry infromation with
VERSION
public static final String VERSION
Current SDK version
Constructor Details
TelemetryHandler
public TelemetryHandler()
Method Details
intercept
public Response intercept(Interceptor.Chain chain)
Parameters:
Throws: