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