Class TelemetryOptions

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

public class TelemetryOptions extends Object
Options to be passed to the telemetry middleware.
  • Field Details

    • NONE_FLAG

      public static final int NONE_FLAG
      No SDK feature in use
      See Also:
      Constant Field Values
    • REDIRECT_HANDLER_ENABLED_FLAG

      public static final int REDIRECT_HANDLER_ENABLED_FLAG
      Redirect handler enabled
      See Also:
      Constant Field Values
    • RETRY_HANDLER_ENABLED_FLAG

      public static final int RETRY_HANDLER_ENABLED_FLAG
      Retry handler enabled
      See Also:
      Constant Field Values
    • AUTH_HANDLER_ENABLED_FLAG

      public static final int AUTH_HANDLER_ENABLED_FLAG
      Authentication handler enabled
      See Also:
      Constant Field Values
    • DEFAULT_HTTPROVIDER_ENABLED_FLAG

      public static final int DEFAULT_HTTPROVIDER_ENABLED_FLAG
      Default http provider enabled
      See Also:
      Constant Field Values
    • LOGGING_HANDLER_ENABLED_FLAG

      public static final int LOGGING_HANDLER_ENABLED_FLAG
      Logging 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

      @Nonnull 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(@Nonnull String clientRequestId)
      Sets the client request id
      Parameters:
      clientRequestId - the client request id to set, preferably the string representation of a GUID
    • getClientRequestId

      @Nonnull public String getClientRequestId()
      Gets the client request id
      Returns:
      the client request id