pub struct TraefikServiceMirroringHealthCheck {
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 TraefikServiceMirroringHealthCheck
impl TraefikServiceMirroringHealthCheck
Sourcepub fn builder() -> TraefikServiceMirroringHealthCheckBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TraefikServiceMirroringHealthCheckBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TraefikServiceMirroringHealthCheck
.
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 TraefikServiceMirroringHealthCheck
.
Trait Implementations§
Source§impl Clone for TraefikServiceMirroringHealthCheck
impl Clone for TraefikServiceMirroringHealthCheck
Source§fn clone(&self) -> TraefikServiceMirroringHealthCheck
fn clone(&self) -> TraefikServiceMirroringHealthCheck
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for TraefikServiceMirroringHealthCheck
impl Default for TraefikServiceMirroringHealthCheck
Source§fn default() -> TraefikServiceMirroringHealthCheck
fn default() -> TraefikServiceMirroringHealthCheck
Source§impl<'de> Deserialize<'de> for TraefikServiceMirroringHealthCheck
impl<'de> Deserialize<'de> for TraefikServiceMirroringHealthCheck
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 TraefikServiceMirroringHealthCheck
impl JsonSchema for TraefikServiceMirroringHealthCheck
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 TraefikServiceMirroringHealthCheck
impl PartialEq for TraefikServiceMirroringHealthCheck
Source§fn eq(&self, other: &TraefikServiceMirroringHealthCheck) -> bool
fn eq(&self, other: &TraefikServiceMirroringHealthCheck) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TraefikServiceMirroringHealthCheck
Auto Trait Implementations§
impl Freeze for TraefikServiceMirroringHealthCheck
impl RefUnwindSafe for TraefikServiceMirroringHealthCheck
impl Send for TraefikServiceMirroringHealthCheck
impl Sync for TraefikServiceMirroringHealthCheck
impl Unpin for TraefikServiceMirroringHealthCheck
impl UnwindSafe for TraefikServiceMirroringHealthCheck
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