healthcheck

package
Version: v0.20.9 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 2

Documentation

Overview

Package healthcheck contains logic for the Service Manager healthcheck API

Index

Constants

URL is the path of the healthcheck endpoint

Variables

This section is empty.

Functions

func CheckPlatformsState added in v0.18.2

func CheckPlatformsState(platforms []*types.Platform, fatal func(*types.Platform) bool) (map[string]*health.Health, int, int)

func NewController added in v0.1.1

func NewController(health gohealth.IHealth, thresholds map[string]int64) web.Controller

NewController returns a new healthcheck controller with the given health and thresholds

func NewMonitoredPlatformsIndicator added in v0.18.2

func NewMonitoredPlatformsIndicator(ctx context.Context, repository storage.Repository, monitoredPlatformsThreshold int) health.Indicator

func NewPlatformIndicator added in v0.6.0

func NewPlatformIndicator(ctx context.Context, repository storage.Repository, fatal func(*types.Platform) bool) health.Indicator

NewPlatformIndicator returns new health indicator for platforms of given type

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL