Class TelemetryOptions
java.lang.Object
com.microsoft.graph.httpcore.middlewareoption.TelemetryOptions
Options to be passed to the telemetry middleware.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intAuthentication handler enabledstatic intDefault http provider enabledstatic intLogging handler enabledstatic intNo SDK feature in usestatic intRedirect handler enabledstatic 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:
- Constant Field Values
-
REDIRECT_HANDLER_ENABLED_FLAG
public static final int REDIRECT_HANDLER_ENABLED_FLAGRedirect handler enabled- See Also:
- Constant Field Values
-
RETRY_HANDLER_ENABLED_FLAG
public static final int RETRY_HANDLER_ENABLED_FLAGRetry handler enabled- See Also:
- Constant Field Values
-
AUTH_HANDLER_ENABLED_FLAG
public static final int AUTH_HANDLER_ENABLED_FLAGAuthentication handler enabled- See Also:
- Constant Field Values
-
DEFAULT_HTTPROVIDER_ENABLED_FLAG
public static final int DEFAULT_HTTPROVIDER_ENABLED_FLAGDefault http provider enabled- See Also:
- Constant Field Values
-
LOGGING_HANDLER_ENABLED_FLAG
public static final int LOGGING_HANDLER_ENABLED_FLAGLogging handler enabled- See Also:
- Constant Field Values
-
-
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
-