Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectivityStatus ¶
type ConnectivityStatus struct { // Round trip time to node in nanoseconds Latency int64 `json:"latency,omitempty"` // Human readable status/error/warning message Status string `json:"status,omitempty"` }
ConnectivityStatus Connectivity status of a path
swagger:model ConnectivityStatus
func (*ConnectivityStatus) MarshalBinary ¶
func (m *ConnectivityStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConnectivityStatus) UnmarshalBinary ¶
func (m *ConnectivityStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type EndpointStatus ¶
type EndpointStatus struct { // primary address PrimaryAddress *PathStatus `json:"primary-address,omitempty"` // secondary addresses SecondaryAddresses []*PathStatus `json:"secondary-addresses"` }
EndpointStatus Connectivity status to host cce-health endpoints via different paths
swagger:model EndpointStatus
func (*EndpointStatus) MarshalBinary ¶
func (m *EndpointStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EndpointStatus) UnmarshalBinary ¶
func (m *EndpointStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthResponse ¶
type HealthResponse struct { // Status of CCE daemon CCE cceModels.StatusResponse `json:"cce,omitempty"` // System load on node SystemLoad *LoadResponse `json:"system-load,omitempty"` // Uptime of cce-health instance Uptime string `json:"uptime,omitempty"` }
HealthResponse Health and status information of local node
swagger:model HealthResponse
func (*HealthResponse) MarshalBinary ¶
func (m *HealthResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthResponse) UnmarshalBinary ¶
func (m *HealthResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HealthStatusResponse ¶
type HealthStatusResponse struct { // Description of the local node Local *SelfStatus `json:"local,omitempty"` // Connectivity status to each other node Nodes []*NodeStatus `json:"nodes"` // timestamp Timestamp string `json:"timestamp,omitempty"` }
HealthStatusResponse Connectivity status to other daemons
swagger:model HealthStatusResponse
func (*HealthStatusResponse) MarshalBinary ¶
func (m *HealthStatusResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HealthStatusResponse) UnmarshalBinary ¶
func (m *HealthStatusResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HostStatus ¶
type HostStatus struct { // primary address PrimaryAddress *PathStatus `json:"primary-address,omitempty"` // secondary addresses SecondaryAddresses []*PathStatus `json:"secondary-addresses"` }
HostStatus Connectivity status to host cce-health instance via different paths, probing via all known IP addresses
swagger:model HostStatus
func (*HostStatus) MarshalBinary ¶
func (m *HostStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HostStatus) UnmarshalBinary ¶
func (m *HostStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoadResponse ¶
type LoadResponse struct { // Load average over the past 15 minutes Last15min string `json:"last15min,omitempty"` // Load average over the past minute Last1min string `json:"last1min,omitempty"` // Load average over the past 5 minutes Last5min string `json:"last5min,omitempty"` }
LoadResponse System load on node
swagger:model LoadResponse
func (*LoadResponse) MarshalBinary ¶
func (m *LoadResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoadResponse) UnmarshalBinary ¶
func (m *LoadResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodeStatus ¶
type NodeStatus struct { // DEPRECATED: Please use the health-endpoint field instead, which // supports reporting the status of different addresses for the endpoint // Endpoint *PathStatus `json:"endpoint,omitempty"` // Connectivity status to simulated endpoint on the node HealthEndpoint *EndpointStatus `json:"health-endpoint,omitempty"` // Connectivity status to cce-health instance on node IP Host *HostStatus `json:"host,omitempty"` // Identifying name for the node Name string `json:"name,omitempty"` }
NodeStatus Connectivity status of a remote cce-health instance
swagger:model NodeStatus
func (*NodeStatus) MarshalBinary ¶
func (m *NodeStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodeStatus) UnmarshalBinary ¶
func (m *NodeStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PathStatus ¶
type PathStatus struct { // Connectivity status without policy applied HTTP *ConnectivityStatus `json:"http,omitempty"` // Basic ping connectivity status to node IP Icmp *ConnectivityStatus `json:"icmp,omitempty"` // IP address queried for the connectivity status IP string `json:"ip,omitempty"` }
PathStatus Connectivity status via different paths, for example using different policies or service redirection
swagger:model PathStatus
func (*PathStatus) MarshalBinary ¶
func (m *PathStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PathStatus) UnmarshalBinary ¶
func (m *PathStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SelfStatus ¶
type SelfStatus struct { // Name associated with this node Name string `json:"name,omitempty"` }
SelfStatus Description of the cce-health node
swagger:model SelfStatus
func (*SelfStatus) MarshalBinary ¶
func (m *SelfStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SelfStatus) UnmarshalBinary ¶
func (m *SelfStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation