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 ¶
type ResultState ¶
type ResultState string
var ( Succeeded ResultState = "Succeeded" Failed ResultState = "Failed" )
Click to show internal directories.
Click to hide internal directories.