monitor

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrainTask

type DrainTask func(InterruptionEvent, node.Node) error

type InterruptionEvent

type InterruptionEvent struct {
	EventID       string
	Kind          string
	Description   string
	State         string
	NodeName      string
	InstanceID    string
	StartTime     time.Time
	EndTime       time.Time
	Drained       bool
	PreDrainTask  DrainTask `json:"-"`
	PostDrainTask DrainTask `json:"-"`
}

InterruptionEvent gives more context of the interruption event

func (*InterruptionEvent) IsRebalanceRecommendation added in v1.10.0

func (e *InterruptionEvent) IsRebalanceRecommendation() bool

IsRebalanceRecommendation returns true if the interruption event is a rebalance recommendation

func (*InterruptionEvent) TimeUntilEvent

func (e *InterruptionEvent) TimeUntilEvent() time.Duration

TimeUntilEvent returns the duration until the event start time

type Monitor

type Monitor interface {
	Monitor() error
	Kind() string
}

Monitor is an interface which can be implemented for various sources of interruption events

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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