health_manager

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

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 (*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)

Jump to

Keyboard shortcuts

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