stats

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyStats

type ApplyStats struct {
	Successful int
	Skipped    int
	Failed     int
}

func (*ApplyStats) Inc

func (a *ApplyStats) Inc(op event.ApplyEventStatus)

func (*ApplyStats) IncFailed

func (a *ApplyStats) IncFailed()

func (*ApplyStats) Sum

func (a *ApplyStats) Sum() int

type DeleteStats

type DeleteStats struct {
	Successful int
	Skipped    int
	Failed     int
}

func (*DeleteStats) Inc

func (d *DeleteStats) Inc(op event.DeleteEventStatus)

func (*DeleteStats) IncFailed

func (d *DeleteStats) IncFailed()

func (*DeleteStats) Sum added in v0.30.0

func (d *DeleteStats) Sum() int

type PruneStats

type PruneStats struct {
	Successful int
	Skipped    int
	Failed     int
}

func (*PruneStats) Inc

func (p *PruneStats) Inc(op event.PruneEventStatus)

func (*PruneStats) IncFailed

func (p *PruneStats) IncFailed()

func (*PruneStats) Sum added in v0.30.0

func (p *PruneStats) Sum() int

type Stats

type Stats struct {
	ApplyStats  ApplyStats
	PruneStats  PruneStats
	DeleteStats DeleteStats
	WaitStats   WaitStats
}

Stats captures the summarized numbers from apply/prune/delete and reconciliation of resources. Each item in a stats list represents the stats from all the events in a single action group.

func (*Stats) FailedActuationSum

func (s *Stats) FailedActuationSum() int

FailedActuationSum returns the number of resources that failed actuation.

func (*Stats) FailedReconciliationSum

func (s *Stats) FailedReconciliationSum() int

FailedReconciliationSum returns the number of resources that failed reconciliation.

func (*Stats) Handle

func (s *Stats) Handle(e event.Event)

Handle updates the stats based on an event.

type WaitStats

type WaitStats struct {
	Successful int
	Timeout    int
	Failed     int
	Skipped    int
}

func (*WaitStats) Inc

func (w *WaitStats) Inc(status event.WaitEventStatus)

func (*WaitStats) Sum added in v0.30.0

func (w *WaitStats) Sum() int

Jump to

Keyboard shortcuts

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