TelemetryOptions Class
- java.
lang. Object - com.
microsoft. graph. httpcore. middlewareoption. TelemetryOptions
- com.
public class TelemetryOptions
Options to be passed to the telemetry middleware.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final int |
AUTH_HANDLER_ENABLED_FLAG
Authentication handler enabled |
| static final int |
DEFAULT_HTTPROVIDER_ENABLED_FLAG
Default http provider enabled |
| static final int |
LOGGING_HANDLER_ENABLED_FLAG
Logging handler enabled |
| static final int |
NONE_FLAG
No SDK feature in use |
| static final int |
REDIRECT_HANDLER_ENABLED_FLAG
Redirect handler enabled |
| static final int |
RETRY_HANDLER_ENABLED_FLAG
Retry handler enabled |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| TelemetryOptions() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getClientRequestId()
Gets the client request id |
| int |
getFeatureUsage()
Gets a numeric representation of the SDK feature usage |
| java.lang.String |
getSerializedFeatureUsage()
Gets a serialized representation of the SDK feature usage. |
| void |
setClientRequestId(String clientRequestId)
Sets the client request id |
| void |
setFeatureUsage(int flag)
Sets a numeric representation of the SDK feature usage |
Methods inherited from java.lang.Object
Field Details
AUTH_HANDLER_ENABLED_FLAG
public static final int AUTH_HANDLER_ENABLED_FLAG
Authentication handler enabled
DEFAULT_HTTPROVIDER_ENABLED_FLAG
public static final int DEFAULT_HTTPROVIDER_ENABLED_FLAG
Default http provider enabled
LOGGING_HANDLER_ENABLED_FLAG
public static final int LOGGING_HANDLER_ENABLED_FLAG
Logging handler enabled
NONE_FLAG
public static final int NONE_FLAG
No SDK feature in use
REDIRECT_HANDLER_ENABLED_FLAG
public static final int REDIRECT_HANDLER_ENABLED_FLAG
Redirect handler enabled
RETRY_HANDLER_ENABLED_FLAG
public static final int RETRY_HANDLER_ENABLED_FLAG
Retry handler enabled
Constructor Details
TelemetryOptions
public TelemetryOptions()
Method Details
getClientRequestId
public String getClientRequestId()
Gets the client request id
Returns:
getFeatureUsage
public int getFeatureUsage()
Gets a numeric representation of the SDK feature usage
Returns:
getSerializedFeatureUsage
public String getSerializedFeatureUsage()
Gets a serialized representation of the SDK feature usage.
Returns:
setClientRequestId
public void setClientRequestId(String clientRequestId)
Sets the client request id
Parameters:
setFeatureUsage
public void setFeatureUsage(int flag)
Sets a numeric representation of the SDK feature usage
Parameters: