Documentation ¶
Overview ¶
Package health_manager provides the main functionality for the gateway_health service. The health manager collects Federated Gateway service and system metrics related to health and reports them to the cloud, implementing any requested action sent back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHealthConfig ¶
func GetHealthConfig() *mconfig.GatewayHealthConfig
GetHealthConfig attempts to retrieve a GatewayHealthConfig from mconfig If this retrieval fails, or retrieves an invalid config, the config is set to use default values
Types ¶
type HealthManager ¶
type HealthManager struct {
// contains filtered or unexported fields
}
func NewHealthManager ¶
func NewHealthManager(cloudReg service_registry.GatewayRegistry, hcfg *mconfig.GatewayHealthConfig) *HealthManager
func (*HealthManager) SendHealthUpdate ¶
func (hm *HealthManager) SendHealthUpdate() error
SendHealthUpdate collects Gateway Service and System Health Status and sends them to the cloud health service. It awaits a response from the cloud and applies any action requested from the cloud (e.g. SYSTEM_DOWN)
Click to show internal directories.
Click to hide internal directories.