monitor

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 23 Imported by: 40 modules, 84 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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