Module prometheus_http_query::error
source · Expand description
All error types that are returned by methods in this crate.
Structs
- Is thrown when the
Clientor the underlyingreqwest::Errorfail to build or execute a request. - Is thrown when the URL that is used to instantiate the
Clientis invalid. - This error is thrown when the JSON response’s
statusfield containserror.
The error-related information from the JSON body is included in this error.
Enums
- A global error enum that contains all errors that are returned by this library. Some errors are wrappers for errors from underlying libraries. All errors (this enum as well as all contained structs) implement
std::error::Error. - The parsed error type as returned by the Prometheus API.