TelemetryOptions Class

  • java.lang.Object
    • com.microsoft.graph.httpcore.middlewareoption.TelemetryOptions

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

the client request id

getFeatureUsage

public int getFeatureUsage()

Gets a numeric representation of the SDK feature usage

Returns:

a numeric representation of the SDK feature usage

getSerializedFeatureUsage

public String getSerializedFeatureUsage()

Gets a serialized representation of the SDK feature usage.

Returns:

a serialized representation of the SDK feature usage

setClientRequestId

public void setClientRequestId(String clientRequestId)

Sets the client request id

Parameters:

clientRequestId - the client request id to set, preferably the string representation of a GUID

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

Applies to