schema

package
v0.0.0-...-c8d90df Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CulpritSchema

type CulpritSchema struct {
	Id string `sql:"id UUID PRIMARY KEY DEFAULT gen_random_uuid()"`

	// Repo this change belongs to e.g. chromium.googlesource.com
	Host string `sql:"host STRING"`

	// Project inside the repo e.g. chromium/src
	Project string `sql:"project STRING"`

	// Repo Ref e.g. refs/heads/main
	Ref string `sql:"ref STRING"`

	// Commit hash of the culprit change
	Revision string `sql:"revision STRING"`

	// Stored as a Unit timestamp.
	LastModified int64 `sql:"last_modified INT"`

	// List of Anomaly Group IDs  where this commit has been identified
	// as a culprit.
	AnomalyGroupIDs []string `sql:"anomaly_group_ids STRING ARRAY"`

	// List of Issue Ids associated with this culprit
	IssueIds []string `sql:"issue_ids STRING ARRAY"`

	// JSON map from anomaly group id to the issue id.
	GroupIssueMap interface{} `sql:"group_issue_map JSONB"`
	// contains filtered or unexported fields
}

CulpritSchema represents the SQL schema of the Culprits table. TODO(wenbinzhang): remove anomaly group ids and issue ids as we have the info needed the group issue map

Jump to

Keyboard shortcuts

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