continuous

package
v0.0.0-...-aa40c24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package continuous looks for Regressions in the background based on the new data arriving and the currently configured Alerts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Continuous

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

Continuous is used to run clustering on the last numCommits commits and look for regressions.

func New

func New(
	perfGit perfgit.Git,
	shortcutStore shortcut.Store,
	provider alerts.ConfigProvider,
	store regression.Store,
	notifier notify.Notifier,
	paramsProvider regression.ParamsetProvider,
	urlProvider urlprovider.URLProvider,
	dfBuilder dataframe.DataFrameBuilder,
	instanceConfig *config.InstanceConfig,
	flags *config.FrontendFlags) *Continuous

New creates a new *Continuous.

provider - Produces the slice of alerts.Config's that determine the clustering to perform.
numCommits - The number of commits to run the clustering over.
radius - The number of commits on each side of a commit to include when clustering.

func (*Continuous) ProcessAlertConfig

func (c *Continuous) ProcessAlertConfig(ctx context.Context, cfg *alerts.Alert, queryOverride string)

ProcessAlertConfig processes the supplied alert config to detect regressions

func (*Continuous) ProcessAlertConfigForTraces

func (c *Continuous) ProcessAlertConfigForTraces(ctx context.Context, config alerts.Alert, traceIds []string)

ProcessAlertConfigForTrace runs the alert config on a specific trace id

func (*Continuous) Run

func (c *Continuous) Run(ctx context.Context)

Run starts the continuous running of clustering over the last numCommits commits.

Note that it never returns so it should be called as a Go routine.

func (*Continuous) RunContinuousClustering

func (c *Continuous) RunContinuousClustering(ctx context.Context)

RunContinuousClustering runs the regression detection on a continuous basis.

func (*Continuous) RunEventDrivenClustering

func (c *Continuous) RunEventDrivenClustering(ctx context.Context)

RunEventDrivenClustering executes the regression detection based on events received from data ingestion.

Jump to

Keyboard shortcuts

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