Class TelemetryOptions
java.lang.Object
com.microsoft.graph.httpcore.middlewareoption.TelemetryOptions
Options to be passed to the telemetry middleware.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAuthentication handler enabledstatic final intDefault http provider enabledstatic final intLogging handler enabledstatic final intNo SDK feature in usestatic final intRedirect handler enabledstatic final intRetry handler enabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the client request idintGets a numeric representation of the SDK feature usageGets a serialized representation of the SDK feature usage.voidsetClientRequestId(String clientRequestId) Sets the client request idvoidsetFeatureUsage(int flag) Sets a numeric representation of the SDK feature usage
-
Field Details
-
NONE_FLAG
public static final int NONE_FLAGNo SDK feature in use- See Also:
-
REDIRECT_HANDLER_ENABLED_FLAG
public static final int REDIRECT_HANDLER_ENABLED_FLAGRedirect handler enabled- See Also:
-
RETRY_HANDLER_ENABLED_FLAG
public static final int RETRY_HANDLER_ENABLED_FLAGRetry handler enabled- See Also:
-
AUTH_HANDLER_ENABLED_FLAG
public static final int AUTH_HANDLER_ENABLED_FLAGAuthentication handler enabled- See Also:
-
DEFAULT_HTTPROVIDER_ENABLED_FLAG
public static final int DEFAULT_HTTPROVIDER_ENABLED_FLAGDefault http provider enabled- See Also:
-
LOGGING_HANDLER_ENABLED_FLAG
public static final int LOGGING_HANDLER_ENABLED_FLAGLogging handler enabled- See Also:
-
-
Constructor Details
-
TelemetryOptions
public TelemetryOptions()
-
-
Method Details
-
setFeatureUsage
public void setFeatureUsage(int flag) Sets a numeric representation of the SDK feature usage- Parameters:
flag- a numeric representation of the SDK feature usage
-
getFeatureUsage
public int getFeatureUsage()Gets a numeric representation of the SDK feature usage- Returns:
- a numeric representation of the SDK feature usage
-
getSerializedFeatureUsage
Gets a serialized representation of the SDK feature usage.- Returns:
- a serialized representation of the SDK feature usage
-
setClientRequestId
Sets the client request id- Parameters:
clientRequestId- the client request id to set, preferably the string representation of a GUID
-
getClientRequestId
Gets the client request id- Returns:
- the client request id
-