monitor

package
v0.0.0-...-e4a8a9b Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 23 Imported by: 88

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRecorder

func NewRecorder() monitorapi.Recorder

NewRecorder creates a recorder that can be used to store events

func WrapWithJSONLRecorder

func WrapWithJSONLRecorder(delegate monitorapi.Recorder, outfile io.Writer, intervalDisplayFilter monitorapi.EventIntervalMatchesFunc) monitorapi.Recorder

Types

type Interface

type Interface interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) (ResultState, error)
	SerializeResults(ctx context.Context, junitSuiteName, timeSuffix string) (*junitapi.JUnitTestSuite, error)
}

func NewMonitor

func NewMonitor(
	recorder monitorapi.Recorder,
	adminKubeConfig *rest.Config,
	storageDir string,
	monitorTestRegistry monitortestframework.MonitorTestRegistry) Interface

NewMonitor creates a monitor with the default sampling interval.

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func (*Monitor) SerializeResults

func (m *Monitor) SerializeResults(ctx context.Context, junitSuiteName, timeSuffix string) (*junitapi.JUnitTestSuite, error)

func (*Monitor) Start

func (m *Monitor) Start(ctx context.Context) error

Start begins monitoring the cluster referenced by the default kube configuration until context is finished.

func (*Monitor) Stop

func (m *Monitor) Stop(ctx context.Context) (ResultState, error)

type ResultState

type ResultState string
var (
	Succeeded ResultState = "Succeeded"
	Failed    ResultState = "Failed"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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