schema

package
v0.0.0-...-3c98ef5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Regression2Schema

type Regression2Schema struct {
	// The id for the regression.
	ID string `sql:"id UUID PRIMARY KEY DEFAULT gen_random_uuid()"`

	// The commit_number where the regression occurred.
	CommitNumber types.CommitNumber `sql:"commit_number INT"`

	// The commit_number before the commit where the regression occurred.
	PrevCommitNumber types.CommitNumber `sql:"prev_commit_number INT"`

	// The id of an Alert, i.e. the id from the Alerts table.
	AlertID int `sql:"alert_id INT"`

	// The timestamp when the anomaly group is created.
	CreationTime time.Time `sql:"creation_time TIMESTAMPTZ DEFAULT now()"`

	// Median of the data frame before the regression.
	MedianBefore float32 `sql:"median_before REAL"`

	// Median of the data frame after the regression.
	MedianAfter float32 `sql:"median_after REAL"`

	// Whether the regression represents an improvement in the metrics.
	IsImprovement bool `sql:"is_improvement BOOL"`

	// The cluster type for the regression.
	ClusterType string `sql:"cluster_type TEXT"`

	// A clustering2.ClusterSummary serialized as json.
	ClusterSummary interface{} `sql:"cluster_summary JSONB"`

	// A frame.FrameResponse serialized as json.
	Frame interface{} `sql:"frame JSONB"`

	// Triage status for the regression.
	TriageStatus string `sql:"triage_status TEXT"`

	// Triage message for the regression.
	TriageMessage string `sql:"triage_message TEXT"`
	// contains filtered or unexported fields
}

RegressionSchema is the SQL schema for storing regression.Regression's.

Jump to

Keyboard shortcuts

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