stats

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountAtTime

type CountAtTime map[time.Time]int

CountAtTime provides the number of elements at each given time

func (CountAtTime) Add

func (c CountAtTime) Add(time time.Time, count int)

Add insert the count at time

func (CountAtTime) AddNow

func (c CountAtTime) AddNow(count int)

AddNow insert the count at `time.Now()`

func (CountAtTime) Count

func (c CountAtTime) Count(time time.Time)

Count increments the count at time

func (CountAtTime) Keys

func (c CountAtTime) Keys() []time.Time

Keys returns all the time values recorded sorted

func (CountAtTime) Values

func (c CountAtTime) Values() []int

Values returns all the recorded counters sorted

type DurationAtTime

type DurationAtTime map[time.Time]time.Duration

DurationAtTime provides the of period incurred at each given time

type Stats

type Stats struct {
	Open    int
	Draft   int
	Review  int
	Merge   int
	Stopped int
	Age     duration.MovingAverage
}

Stats for the open pull requests being evaluated

func (*Stats) Add

func (stats *Stats) Add(s Stats)

Add two stats together

Jump to

Keyboard shortcuts

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