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