sensors

package
v1.1.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedJobProvider added in v0.3.24

type CompletedJobProvider struct {
	ExecutionStore store.ExecutionStore
}

func NewCompletedJobs added in v0.3.24

func NewCompletedJobs(e store.ExecutionStore) *CompletedJobProvider

func (*CompletedJobProvider) GetDebugInfo added in v0.3.24

func (c *CompletedJobProvider) GetDebugInfo(ctx context.Context) (model.DebugInfo, error)

GetDebugInfo implements model.DebugInfoProvider

type LoggingSensor

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

LoggingSensor is a sensor that periodically logs the debug info

func NewLoggingSensor

func NewLoggingSensor(params LoggingSensorParams) *LoggingSensor

NewLoggingSensor create a new LoggingSensor from LoggingSensorParams

func (LoggingSensor) Start

func (s LoggingSensor) Start(ctx context.Context)

type LoggingSensorParams

type LoggingSensorParams struct {
	InfoProvider model.DebugInfoProvider
	Interval     time.Duration
}

type RunningExecutionsInfoProvider

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

RunningExecutionsInfoProvider provides DebugInfo about the currently running executions. The info can be used for logging, metric, or to handle /debug API implementation.

func (RunningExecutionsInfoProvider) GetDebugInfo

type RunningExecutionsInfoProviderParams

type RunningExecutionsInfoProviderParams struct {
	Name          string
	BackendBuffer *compute.ExecutorBuffer
}

Jump to

Keyboard shortcuts

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