Class LogsUploadOptions

java.lang.Object
com.azure.monitor.ingestion.models.LogsUploadOptions

public final class LogsUploadOptions extends Object
The options model to configure the request to upload logs to Azure Monitor.
  • Constructor Details

    • LogsUploadOptions

      public LogsUploadOptions()
      Creates an instance of LogsUploadOptions.
  • Method Details

    • getObjectSerializer

      public com.azure.core.util.serializer.ObjectSerializer getObjectSerializer()
      Returns the serializer to use to convert the log objects to JSON.
      Returns:
      the serializer to use to convert the log objects to JSON.
    • setObjectSerializer

      public LogsUploadOptions setObjectSerializer(com.azure.core.util.serializer.ObjectSerializer objectSerializer)
      Sets the serializer to use to convert the log objects to JSON.
      Parameters:
      objectSerializer - the serializer to use to convert the log objects to JSON.
      Returns:
      the updated LogsUploadOptions instance.
    • getMaxConcurrency

      public Integer getMaxConcurrency()
      Returns the max concurrent requests to send to the Azure Monitor service when uploading logs.
      Returns:
      the max concurrent requests to send to the Azure Monitor service when uploading logs.
    • setMaxConcurrency

      public LogsUploadOptions setMaxConcurrency(Integer maxConcurrency)
      Sets the max concurrent requests to send to the Azure Monitor service when uploading logs.
      Parameters:
      maxConcurrency - the max concurrent requests to send to the Azure Monitor service when uploading logs.
      Returns:
      the updated LogsUploadOptions instance.
    • getLogsUploadErrorConsumer

      public Consumer<LogsUploadError> getLogsUploadErrorConsumer()
      Returns the error handler that is called when a request to the Azure Monitor service to upload logs fails.
      Returns:
      the error handler that is called when a request to the Azure Monitor service to upload logs fails.
    • setLogsUploadErrorConsumer

      public LogsUploadOptions setLogsUploadErrorConsumer(Consumer<LogsUploadError> logsUploadErrorConsumer)
      Sets the error handler that is called when a request to the Azure Monitor service to upload logs fails.
      Parameters:
      logsUploadErrorConsumer - the error handler that is called when a request to the Azure Monitor service to upload logs fails.
      Returns:
      the updated LogsUploadOptions instance.