healthcheck

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker func() (measurements map[string]string, err error)

Checker is how healthchecks implement the logic for testing health and returning samples

type Priority

type Priority int32
const (
	// 0 reserved for catastrophic failure. Not yet utilized.
	Pager   Priority = 1
	Email   Priority = 2
	Warning Priority = 3
)

func (Priority) MarshalJSON

func (r Priority) MarshalJSON() ([]byte, error)

MarshalJSON is generated so Priority satisfies json.Marshaler.

func (*Priority) UnmarshalJSON

func (r *Priority) UnmarshalJSON(data []byte) error

UnmarshalJSON is generated so Priority satisfies json.Unmarshaler.

Jump to

Keyboard shortcuts

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