Package com.microsoft.graph.httpcore
Class TelemetryHandler
java.lang.Object
com.microsoft.graph.httpcore.TelemetryHandler
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringAndroid version prefixstatic StringThe client request ID headerstatic StringVerion prefixstatic StringJava version prefixstatic StringHttp request header to send the telemetry infromation withstatic StringCurrent SDK versionFields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SDK_VERSION
Http request header to send the telemetry infromation with- See Also:
- Constant Field Values
-
VERSION
Current SDK version- See Also:
- Constant Field Values
-
GRAPH_VERSION_PREFIX
Verion prefix- See Also:
- Constant Field Values
-
JAVA_VERSION_PREFIX
Java version prefix- See Also:
- Constant Field Values
-
ANDROID_VERSION_PREFIX
Android version prefix- See Also:
- Constant Field Values
-
CLIENT_REQUEST_ID
The client request ID header- See Also:
- Constant Field Values
-
-
Constructor Details
-
TelemetryHandler
public TelemetryHandler()
-
-
Method Details
-
intercept
@Nonnull public okhttp3.Response intercept(@Nonnull okhttp3.Interceptor.Chain chain) throws IOException- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-