pub struct MiddlewareErrorsServiceHealthCheck {
pub follow_redirects: Option<bool>,
pub headers: Option<BTreeMap<String, String>>,
pub hostname: Option<String>,
pub interval: Option<IntOrString>,
pub method: Option<String>,
pub mode: Option<String>,
pub path: Option<String>,
pub port: Option<i64>,
pub scheme: Option<String>,
pub status: Option<i64>,
pub timeout: Option<IntOrString>,
}
Expand description
Healthcheck defines health checks for ExternalName services.
Fields§
§follow_redirects: Option<bool>
FollowRedirects defines whether redirects should be followed during the health check calls. Default: true
headers: Option<BTreeMap<String, String>>
Headers defines custom headers to be sent to the health check endpoint.
hostname: Option<String>
Hostname defines the value of hostname in the Host header of the health check request.
interval: Option<IntOrString>
Interval defines the frequency of the health check calls. Default: 30s
method: Option<String>
Method defines the healthcheck method.
mode: Option<String>
Mode defines the health check mode. If defined to grpc, will use the gRPC health check protocol to probe the server. Default: http
path: Option<String>
Path defines the server URL path for the health check endpoint.
port: Option<i64>
Port defines the server URL port for the health check endpoint.
scheme: Option<String>
Scheme replaces the server URL scheme for the health check endpoint.
status: Option<i64>
Status defines the expected HTTP status code of the response to the health check request.
timeout: Option<IntOrString>
Timeout defines the maximum duration Traefik will wait for a health check request before considering the server unhealthy. Default: 5s
Implementations§
Source§impl MiddlewareErrorsServiceHealthCheck
impl MiddlewareErrorsServiceHealthCheck
Sourcepub fn builder() -> MiddlewareErrorsServiceHealthCheckBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> MiddlewareErrorsServiceHealthCheckBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building MiddlewareErrorsServiceHealthCheck
.
On the builder, call .follow_redirects(...)
(optional), .headers(...)
(optional), .hostname(...)
(optional), .interval(...)
(optional), .method(...)
(optional), .mode(...)
(optional), .path(...)
(optional), .port(...)
(optional), .scheme(...)
(optional), .status(...)
(optional), .timeout(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MiddlewareErrorsServiceHealthCheck
.
Trait Implementations§
Source§impl Clone for MiddlewareErrorsServiceHealthCheck
impl Clone for MiddlewareErrorsServiceHealthCheck
Source§fn clone(&self) -> MiddlewareErrorsServiceHealthCheck
fn clone(&self) -> MiddlewareErrorsServiceHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for MiddlewareErrorsServiceHealthCheck
impl Default for MiddlewareErrorsServiceHealthCheck
Source§fn default() -> MiddlewareErrorsServiceHealthCheck
fn default() -> MiddlewareErrorsServiceHealthCheck
Source§impl<'de> Deserialize<'de> for MiddlewareErrorsServiceHealthCheck
impl<'de> Deserialize<'de> for MiddlewareErrorsServiceHealthCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MiddlewareErrorsServiceHealthCheck
impl JsonSchema for MiddlewareErrorsServiceHealthCheck
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for MiddlewareErrorsServiceHealthCheck
impl PartialEq for MiddlewareErrorsServiceHealthCheck
Source§fn eq(&self, other: &MiddlewareErrorsServiceHealthCheck) -> bool
fn eq(&self, other: &MiddlewareErrorsServiceHealthCheck) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for MiddlewareErrorsServiceHealthCheck
Auto Trait Implementations§
impl Freeze for MiddlewareErrorsServiceHealthCheck
impl RefUnwindSafe for MiddlewareErrorsServiceHealthCheck
impl Send for MiddlewareErrorsServiceHealthCheck
impl Sync for MiddlewareErrorsServiceHealthCheck
impl Unpin for MiddlewareErrorsServiceHealthCheck
impl UnwindSafe for MiddlewareErrorsServiceHealthCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more