Documentation ¶
Index ¶
Constants ¶
View Source
const JsonIdent = " "
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CNInstance ¶
type CNStatus ¶
type CNStatus struct { UUID string `json:"uuid"` TxnClientStatus TxnClientStatus `json:"txn_client_status"` }
type DeletedSession ¶
type HAKeeperStatus ¶
type HAKeeperStatus struct { Nodes []NodeStatus `json:"nodes"` DeletedNodes []NodeStatus `json:"deleted_nodes"` ErrMsg string `json:"err_msg"` }
HAKeeperStatus contains the status of HAKeeper. Currently, we focus on the uptime/downtime of nodes in HAKeeper.
type LogtailServerStatus ¶
type LogtailServerStatus struct { Sessions []SessionStatus `json:"session_status"` DeletedSessions []DeletedSession `json:"deleted_sessions"` }
type NodeStatus ¶
type NodeStatus struct { NodeID string `json:"node_id"` NodeType string `json:"node_type"` Address string `json:"address"` Labels map[string]metadata.LabelList `json:"Labels"` WorkState metadata.WorkState `json:"WorkState"` Resource pb.Resource `json:"Resource"` UpTime time.Time `json:"up_time"` DownTime time.Time `json:"down_time"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetHAKeeperClient ¶
func (s *Server) SetHAKeeperClient(c logservice.ClusterHAKeeperClient)
func (*Server) SetLogtailServer ¶
func (s *Server) SetLogtailServer(logtailServer *service.LogtailServer)
type SessionStatus ¶
type Status ¶
type Status struct { LogtailServerStatus LogtailServerStatus `json:"logtail_server_status"` HAKeeperStatus HAKeeperStatus `json:"hakeeper_status"` CNStatus []CNStatus `json:"cn_status"` }
type TxnClientStatus ¶
type TxnClientStatus struct { // indicate whether the CN can provide service normally. // 0 means paused, 1 means normal. State int // number of user active transactions. UserTxnNum int // all active txns ActiveTxns []string ActiveTxnCount int // FIFO queue for ready to active txn WaitActiveTxns []string WaitActiveTxnCount int // LatestTS is the latest TS for the txn client. LatestTS timestamp.Timestamp }
Click to show internal directories.
Click to hide internal directories.