healthcheck

package
v0.0.0-...-e09c833 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Healthy           = "HEALTHY"
	Unhealthy         = "UNHEALTHY"
	UPDATE_SUCCESSFUL = "UPDATE_SUCCESSFUL"
	UPDATE_FAILED     = "UPDATE_FAILED"
	NOT_INITIALIZED   = "NOT_INITIALIZED"
	INITIALIZED       = "INITIALIZED"
	LIVE              = "LIVE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvoyEndpointHttpData

type EnvoyEndpointHttpData struct {
	// contains filtered or unexported fields
}

type HealthStatus

type HealthStatus struct {
	HealthStatus                          string     `json:"healthStatus"`
	AgentUptime                           string     `json:"agentUptime"`
	EnvoyPid                              string     `json:"envoyPid"`
	EnvoyState                            string     `json:"envoyState"`
	EnvoyRestartCount                     string     `json:"envoyRestartCount"`
	ManagementServerConnectionStatus      string     `json:"managementServerConnectionStatus,omitempty"`
	ManagementServerDisconnectedTimestamp *time.Time `json:"managementServerDisconnectedTimestamp,omitempty"`
	EnvoyReadinessState                   string     `json:"envoyReadinessState"`
	InitialConfigUpdateStatus             string     `json:"initialConfigUpdateStatus,omitempty"`
}

func (*HealthStatus) StartHealthCheck

func (healthStatus *HealthStatus) StartHealthCheck(
	agentStartTime time.Time,
	agentConfig config.AgentConfig,
	messageSources *messagesources.MessageSources)

type HealthStatusHandler

type HealthStatusHandler struct {
	HealthStatus *HealthStatus
	Limiter      *rate.Limiter
}

func (*HealthStatusHandler) EnvoyStatus

func (healthStatusHandler *HealthStatusHandler) EnvoyStatus(response http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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