pub struct CheckType {Show 34 fields
pub check_id: String,
pub name: String,
pub status: String,
pub notes: String,
pub script_args: Vec<String>,
pub http: String,
pub h2_ping: String,
pub h2_ping_use_tls: bool,
pub header: HashMap<String, Vec<String>>,
pub method: String,
pub body: String,
pub disable_redirects: bool,
pub tcp: String,
pub tcp_use_tls: bool,
pub udp: String,
pub interval: Option<String>,
pub alias_node: String,
pub alias_service: String,
pub docker_container_id: String,
pub shell: String,
pub grpc: String,
pub grpc_use_tls: bool,
pub os_service: String,
pub tls_server_name: String,
pub tls_skip_verify: bool,
pub timeout: Option<String>,
pub ttl: Option<String>,
pub success_before_passing: isize,
pub failures_before_warning: isize,
pub failures_before_critical: isize,
pub proxy_http: String,
pub proxy_grpc: String,
pub deregister_critical_service_after: Option<String>,
pub output_max_size: isize,
}
Expand description
CheckType is used to create either the CheckMonitor or the CheckTTL. The following types are supported: Script, HTTP, TCP, Docker, TTL, GRPC, Alias, H2PING. Script, HTTP, Docker, TCP, GRPC, and H2PING all require Interval. Only one of the types may to be provided: TTL or Script/Interval or HTTP/Interval or TCP/Interval or Docker/Interval or GRPC/Interval or AliasService or H2PING/Interval. Since types like CheckHTTP and CheckGRPC derive from CheckType, there are helper conversion methods that do the reverse conversion. ie. checkHTTP.CheckType()
Fields§
§check_id: String
§name: String
§status: String
§notes: String
§script_args: Vec<String>
§http: String
§h2_ping: String
§h2_ping_use_tls: bool
§header: HashMap<String, Vec<String>>
§method: String
§body: String
§disable_redirects: bool
§tcp: String
§tcp_use_tls: bool
§udp: String
§interval: Option<String>
§alias_node: String
§alias_service: String
§docker_container_id: String
§shell: String
§grpc: String
§grpc_use_tls: bool
§os_service: String
§tls_server_name: String
§tls_skip_verify: bool
§timeout: Option<String>
§ttl: Option<String>
§success_before_passing: isize
§failures_before_warning: isize
§failures_before_critical: isize
§proxy_http: String
Definition fields used when exposing checks through a proxy
proxy_grpc: String
§deregister_critical_service_after: Option<String>
DeregisterCriticalServiceAfter, if >0, will cause the associated service, if any, to be deregistered if this check is critical for longer than this duration.
output_max_size: isize