[][src]Enum simple_azure_monitor_data_collector::LogError

pub enum LogError {
    Http(Error),
    RequestBuilder(RequestBuildError),
    BadRequest {
        response: Response,
    },
    Forbidden,
    NotFound,
    TooManyRequests,
    InternalServerError,
    ServiceUnavailable,
    Other {
        response: Response,
    },
}

Errors that can occur when logging data to the Data Collector API.

Variants

Http(Error)

Error occurred in the underlying HTTP library.

RequestBuilder(RequestBuildError)

Error occurred when building a HTTP request.

BadRequest

The response indicated that the request was not valid.

Fields of BadRequest

response: Response
Forbidden

The service failed to authenticate the request. Verify that the workspace ID and connection key are valid.

NotFound

Either the URL provided is incorrect, or the request is too large.

TooManyRequests

The service is experiencing a high volume of data from your account. Please retry the request later.

InternalServerError

The service encountered an internal error. Please retry the request.

ServiceUnavailable

The service currently is unavailable to receive requests. Please retry your request.

Other

The HTTP reponse had an unexpected status code.

Fields of Other

response: Response

Methods

impl LogError[src]

pub fn is_retryable(&self) -> bool[src]

Returns true if the request which caused this error can be resent. If an error is retryable, it means that the Azure documentation has indicated that it is ok to resend the failed request.

If an error is not retryable, the request should not be resent, and that error must be handled appropriately.

This function does not consider potentially retryable errors which originate from the underlying HTTP library, for example timeout errors.

Trait Implementations

impl From<Error> for LogError[src]

impl From<RequestBuildError> for LogError[src]

impl Display for LogError[src]

impl Debug for LogError[src]

impl Error for LogError[src]

Auto Trait Implementations

impl Send for LogError

impl Sync for LogError

impl Unpin for LogError

impl !UnwindSafe for LogError

impl !RefUnwindSafe for LogError

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self