util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExperimentCreatedReason              = "ExperimentCreated"
	ExperimentRunningReason              = "ExperimentRunning"
	ExperimentRestartingReason           = "ExperimentRestarting"
	ExperimentGoalReachedReason          = "ExperimentGoalReached"
	ExperimentMaxTrialsReachedReason     = "ExperimentMaxTrialsReached"
	ExperimentSuggestionEndReachedReason = "ExperimentSuggestionEndReached"
	ExperimentFailedReason               = "ExperimentFailed"
	ExperimentKilledReason               = "ExperimentKilled"
)

Variables

This section is empty.

Functions

func IsCompletedExperimentRestartable

func IsCompletedExperimentRestartable(instance *experimentsv1alpha3.Experiment) bool

func UpdateExperimentStatus

func UpdateExperimentStatus(collector *ExperimentsCollector, instance *experimentsv1alpha3.Experiment, trials *trialsv1alpha3.TrialList) error

func UpdateExperimentStatusCondition

func UpdateExperimentStatusCondition(collector *ExperimentsCollector, instance *experimentsv1alpha3.Experiment, isObjectiveGoalReached bool, getSuggestionDone bool)

UpdateExperimentStatusCondition updates the experiment status.

Types

type ExperimentsCollector

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

func NewExpsCollector

func NewExpsCollector(store cache.Cache, registerer prometheus.Registerer) *ExperimentsCollector

func (*ExperimentsCollector) Collect

func (m *ExperimentsCollector) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (*ExperimentsCollector) Describe

func (m *ExperimentsCollector) Describe(ch chan<- *prometheus.Desc)

Describe implements the prometheus.Collector interface.

func (*ExperimentsCollector) IncreaseExperimentsCreatedCount

func (c *ExperimentsCollector) IncreaseExperimentsCreatedCount(ns string)

func (*ExperimentsCollector) IncreaseExperimentsDeletedCount

func (c *ExperimentsCollector) IncreaseExperimentsDeletedCount(ns string)

func (*ExperimentsCollector) IncreaseExperimentsFailedCount

func (c *ExperimentsCollector) IncreaseExperimentsFailedCount(ns string)

func (*ExperimentsCollector) IncreaseExperimentsSucceededCount

func (c *ExperimentsCollector) IncreaseExperimentsSucceededCount(ns string)

Jump to

Keyboard shortcuts

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