Documentation ¶
Overview ¶
Package continuous looks for Regressions in the background based on the new data arriving and the currently configured Alerts.
Index ¶
- type Continuous
- func (c *Continuous) ProcessAlertConfig(ctx context.Context, cfg *alerts.Alert, queryOverride string)
- func (c *Continuous) ProcessAlertConfigForTraces(ctx context.Context, config alerts.Alert, traceIds []string)
- func (c *Continuous) Run(ctx context.Context)
- func (c *Continuous) RunContinuousClustering(ctx context.Context)
- func (c *Continuous) RunEventDrivenClustering(ctx context.Context)
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.