stats

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 {
	ServersideApplied int
	Created           int
	Unchanged         int
	Configured        int
	Failed            int
}

func (*ApplyStats) Inc

func (*ApplyStats) IncFailed

func (a *ApplyStats) IncFailed()

func (*ApplyStats) Sum

func (a *ApplyStats) Sum() int

type DeleteStats

type DeleteStats struct {
	Deleted int
	Skipped int
	Failed  int
}

func (*DeleteStats) Inc

func (*DeleteStats) IncFailed

func (d *DeleteStats) IncFailed()

type PruneStats

type PruneStats struct {
	Pruned  int
	Skipped int
	Failed  int
}

func (*PruneStats) Inc

func (*PruneStats) IncFailed

func (p *PruneStats) IncFailed()

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.

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 {
	Reconciled int
	Timeout    int
	Failed     int
	Skipped    int
}

func (*WaitStats) Inc

func (w *WaitStats) Inc(op event.WaitEventOperation)

Jump to

Keyboard shortcuts

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