LogsUploadError Class

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

public final class LogsUploadError

The model representing the error and the associated logs that failed when uploading a subset of logs to Azure Monitor.

Constructor Summary

Constructor Description
LogsUploadError(HttpResponseException responseException, List<Object> failedLogs)

Creates an instance of error.

Method Summary

Modifier and Type Method and Description
List<Object> getFailedLogs()

Returns the logs that failed to upload.

HttpResponseException getResponseException()

Returns the response error containing the error details returned by the service.

Methods inherited from java.lang.Object

Constructor Details

LogsUploadError

public LogsUploadError(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

getFailedLogs

public List<Object> getFailedLogs()

Returns the logs that failed to upload.

Returns:

the logs that failed to upload.

getResponseException

public 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.

Applies to