models

package
v0.0.0-...-b02393b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (*ConnectivityStatus) Validate

func (m *ConnectivityStatus) Validate(formats strfmt.Registry) error

Validate validates this connectivity status

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

func (*EndpointStatus) Validate

func (m *EndpointStatus) Validate(formats strfmt.Registry) error

Validate validates this endpoint status

type Error

type Error string

Error error

swagger:model error

func (Error) Validate

func (m Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (*HealthResponse) Validate

func (m *HealthResponse) Validate(formats strfmt.Registry) error

Validate validates this health response

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

func (*HealthStatusResponse) Validate

func (m *HealthStatusResponse) Validate(formats strfmt.Registry) error

Validate validates this health status response

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

func (*HostStatus) Validate

func (m *HostStatus) Validate(formats strfmt.Registry) error

Validate validates this host status

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

func (*LoadResponse) Validate

func (m *LoadResponse) Validate(formats strfmt.Registry) error

Validate validates this load response

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

func (*NodeStatus) Validate

func (m *NodeStatus) Validate(formats strfmt.Registry) error

Validate validates this node status

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

func (*PathStatus) Validate

func (m *PathStatus) Validate(formats strfmt.Registry) error

Validate validates this path status

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

func (*SelfStatus) Validate

func (m *SelfStatus) Validate(formats strfmt.Registry) error

Validate validates this self status

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL