Class LogsUploadError

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

public final class LogsUploadError extends Object
The model representing the error and the associated logs that failed when uploading a subset of logs to Azure Monitor.
  • Constructor Details

    • LogsUploadError

      public LogsUploadError(com.azure.core.exception.HttpResponseException responseException, List<Object> failedLogs)
      Creates an instance of error.
      Parameters:
      responseException - the response exception containing the error details returned by the service.
      failedLogs - the logs that failed to upload.
  • Method Details

    • getResponseException

      public com.azure.core.exception.HttpResponseException getResponseException()
      Returns the response error containing the error details returned by the service.
      Returns:
      the response error containing the error details returned by the service.
    • getFailedLogs

      public List<Object> getFailedLogs()
      Returns the logs that failed to upload.
      Returns:
      the logs that failed to upload.