eventlogger

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountJobsByTransitions

func CountJobsByTransitions(transitionsByJobId map[string][]string) map[string]int

CountJobsByTransitions returns a map from sequences of transitions, e.g., "submitted -> queued" to the number of jobs going through exactly those transitions.

Types

type EventsLogger

type EventsLogger struct {
	Out io.Writer
	// contains filtered or unexported fields
}

func New

func New(c chan *api.EventMessage, interval time.Duration) *EventsLogger

func (*EventsLogger) Log

func (srv *EventsLogger) Log()

func (*EventsLogger) Run

func (srv *EventsLogger) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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