健康检查日志事件 (proto)
data.core.v3.HealthCheckEvent
[data.core.v3.HealthCheckEvent proto]
{
"health_checker_type": ...,
"host": {...},
"cluster_name": ...,
"eject_unhealthy_event": {...},
"add_healthy_event": {...},
"successful_health_check_event": {...},
"health_check_failure_event": {...},
"degraded_healthy_host": {...},
"no_longer_degraded_host": {...},
"timestamp": {...},
"metadata": {...},
"locality": {...}
}
- health_checker_type
- host
- cluster_name
(string, REQUIRED)
- eject_unhealthy_event
(data.core.v3.HealthCheckEjectUnhealthy) 主机驱逐。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- add_healthy_event
(data.core.v3.HealthCheckAddHealthy) 主机添加。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- successful_health_check_event
(data.core.v3.HealthCheckSuccessful) 健康检查成功。注意:如果这是主机上的首次健康检查,或者已达到健康阈值,则主机将被视为健康状态。这种事件表明健康检查已成功,但并不表示主机被视为健康状态。如果发送 HealthCheckAddHealthy 类型的事件,则主机被视为健康状态。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- health_check_failure_event
(data.core.v3.HealthCheckFailure) 主机故障。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- degraded_healthy_host
(data.core.v3.DegradedHealthyHost) 健康主机降级。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- no_longer_degraded_host
(data.core.v3.NoLongerDegradedHost) 降级主机恢复健康状态。
必须设置以下选项之一:eject_unhealthy_event、add_healthy_event、successful_health_check_event、health_check_failure_event、degraded_healthy_host、no_longer_degraded_host。
- timestamp
(Timestamp) 事件的时间戳。
- metadata
(config.core.v3.Metadata) 主机元数据
- locality
(config.core.v3.Locality) 主机位置
data.core.v3.HealthCheckEjectUnhealthy
[data.core.v3.HealthCheckEjectUnhealthy proto]
{
"failure_type": ...
}
- failure_type
(data.core.v3.HealthCheckFailureType) 导致此驱逐的故障类型。
data.core.v3.HealthCheckAddHealthy
[data.core.v3.HealthCheckAddHealthy proto]
{
"first_check": ...
}
data.core.v3.HealthCheckSuccessful
data.core.v3.HealthCheckFailure
[data.core.v3.HealthCheckFailure proto]
{
"failure_type": ...,
"first_check": ...
}
- failure_type
(data.core.v3.HealthCheckFailureType) 导致此事件的故障类型。
- first_check
(bool) 此事件是否为对主机进行的首次健康检查的结果。
data.core.v3.DegradedHealthyHost
data.core.v3.NoLongerDegradedHost
枚举 data.core.v3.HealthCheckFailureType
[data.core.v3.HealthCheckFailureType proto]
- ACTIVE
(DEFAULT)
- PASSIVE
- NETWORK
- NETWORK_TIMEOUT
枚举 data.core.v3.HealthCheckerType
[data.core.v3.HealthCheckerType proto]
- HTTP
(DEFAULT)
- TCP
- GRPC
- REDIS
- THRIFT