mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-04 22:35:48 +08:00
集群健康检查可以同时检查单节点的多个IP
This commit is contained in:
@@ -2,10 +2,11 @@ package tasks
|
||||
|
||||
import "github.com/TeaOSLab/EdgeAPI/internal/db/models"
|
||||
|
||||
// HealthCheckResult 健康检查结果
|
||||
type HealthCheckResult struct {
|
||||
Node *models.Node
|
||||
NodeAddr string
|
||||
NodeAddrId int64
|
||||
NodeAddr string // 节点IP地址
|
||||
NodeAddrId int64 // 节点IP地址ID
|
||||
IsOk bool
|
||||
Error string
|
||||
CostMs float64
|
||||
|
||||
Reference in New Issue
Block a user