events

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngestSkip = iota
	IngestStarted
	IngestFinished
	IngestorInit
	IngestorFailed
	DumpStarted
	DumpFinished
	DumpFailed
)
View Source
const (
	EventActionFail   = "fail"
	EventActionInit   = "init"
	EventActionStart  = "start"
	EventActionSkip   = "skip"
	EventActionFinish = "finish"
)

Variables

This section is empty.

Functions

func PushEvent

func PushEvent(ctx context.Context, action EventAction, text string) error

Types

type EventAction added in v1.6.0

type EventAction int

func (EventAction) DefaultMessage added in v1.6.0

func (ea EventAction) DefaultMessage(ctx context.Context) string

func (EventAction) Level added in v1.6.0

func (ea EventAction) Level() statsd.EventAlertType

func (EventAction) Tags added in v1.6.0

func (ea EventAction) Tags(ctx context.Context) []string

func (EventAction) Title added in v1.6.0

func (ea EventAction) Title(ctx context.Context) string

type EventActionDetails added in v1.6.0

type EventActionDetails struct {
	Title  string
	Text   string
	Level  statsd.EventAlertType
	Action string
}

Jump to

Keyboard shortcuts

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