anomaly

package
v0.0.0-...-ea7e623 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the anomaly type in the database.
	Label = "anomaly"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// FieldProcessed holds the string denoting the processed field in the database.
	FieldProcessed = "processed"
	// FieldPeriodStart holds the string denoting the period_start field in the database.
	FieldPeriodStart = "period_start"
	// FieldPeriodEnd holds the string denoting the period_end field in the database.
	FieldPeriodEnd = "period_end"

	// EdgeDetectionJobInstance holds the string denoting the detection_job_instance edge name in mutations.
	EdgeDetectionJobInstance = "detection_job_instance"

	// Table holds the table name of the anomaly in the database.
	Table = "anomalies"
	// DetectionJobInstanceTable is the table the holds the detection_job_instance relation/edge.
	DetectionJobInstanceTable = "anomalies"
	// DetectionJobInstanceInverseTable is the table name for the DetectionJobInstance entity.
	// It exists in this package in order to avoid circular dependency with the "detectionjobinstance" package.
	DetectionJobInstanceInverseTable = "detection_job_instances"
	// DetectionJobInstanceColumn is the table column denoting the detection_job_instance relation/edge.
	DetectionJobInstanceColumn = "detection_job_instance_anomalies"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// DefaultProcessed holds the default value on creation for the "processed" field.
	DefaultProcessed bool
)

Columns holds all SQL columns for anomaly fields.

View Source
var ForeignKeys = []string{
	"detection_job_instance_anomalies",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Anomaly type.

Functions

func And

func And(predicates ...predicate.Anomaly) predicate.Anomaly

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Anomaly

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Anomaly

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Anomaly

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Anomaly

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Anomaly

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Anomaly

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Anomaly

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Anomaly

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Anomaly

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasDetectionJobInstance

func HasDetectionJobInstance() predicate.Anomaly

HasDetectionJobInstance applies the HasEdge predicate on the "detection_job_instance" edge.

func HasDetectionJobInstanceWith

func HasDetectionJobInstanceWith(preds ...predicate.DetectionJobInstance) predicate.Anomaly

HasDetectionJobInstanceWith applies the HasEdge predicate on the "detection_job_instance" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Anomaly

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Anomaly

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Anomaly

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Anomaly

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Anomaly

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Anomaly

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Anomaly

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Anomaly

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Anomaly

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Anomaly) predicate.Anomaly

Or groups predicates with the OR operator between them.

func PeriodEnd

func PeriodEnd(v time.Time) predicate.Anomaly

PeriodEnd applies equality check predicate on the "period_end" field. It's identical to PeriodEndEQ.

func PeriodEndEQ

func PeriodEndEQ(v time.Time) predicate.Anomaly

PeriodEndEQ applies the EQ predicate on the "period_end" field.

func PeriodEndGT

func PeriodEndGT(v time.Time) predicate.Anomaly

PeriodEndGT applies the GT predicate on the "period_end" field.

func PeriodEndGTE

func PeriodEndGTE(v time.Time) predicate.Anomaly

PeriodEndGTE applies the GTE predicate on the "period_end" field.

func PeriodEndIn

func PeriodEndIn(vs ...time.Time) predicate.Anomaly

PeriodEndIn applies the In predicate on the "period_end" field.

func PeriodEndLT

func PeriodEndLT(v time.Time) predicate.Anomaly

PeriodEndLT applies the LT predicate on the "period_end" field.

func PeriodEndLTE

func PeriodEndLTE(v time.Time) predicate.Anomaly

PeriodEndLTE applies the LTE predicate on the "period_end" field.

func PeriodEndNEQ

func PeriodEndNEQ(v time.Time) predicate.Anomaly

PeriodEndNEQ applies the NEQ predicate on the "period_end" field.

func PeriodEndNotIn

func PeriodEndNotIn(vs ...time.Time) predicate.Anomaly

PeriodEndNotIn applies the NotIn predicate on the "period_end" field.

func PeriodStart

func PeriodStart(v time.Time) predicate.Anomaly

PeriodStart applies equality check predicate on the "period_start" field. It's identical to PeriodStartEQ.

func PeriodStartEQ

func PeriodStartEQ(v time.Time) predicate.Anomaly

PeriodStartEQ applies the EQ predicate on the "period_start" field.

func PeriodStartGT

func PeriodStartGT(v time.Time) predicate.Anomaly

PeriodStartGT applies the GT predicate on the "period_start" field.

func PeriodStartGTE

func PeriodStartGTE(v time.Time) predicate.Anomaly

PeriodStartGTE applies the GTE predicate on the "period_start" field.

func PeriodStartIn

func PeriodStartIn(vs ...time.Time) predicate.Anomaly

PeriodStartIn applies the In predicate on the "period_start" field.

func PeriodStartLT

func PeriodStartLT(v time.Time) predicate.Anomaly

PeriodStartLT applies the LT predicate on the "period_start" field.

func PeriodStartLTE

func PeriodStartLTE(v time.Time) predicate.Anomaly

PeriodStartLTE applies the LTE predicate on the "period_start" field.

func PeriodStartNEQ

func PeriodStartNEQ(v time.Time) predicate.Anomaly

PeriodStartNEQ applies the NEQ predicate on the "period_start" field.

func PeriodStartNotIn

func PeriodStartNotIn(vs ...time.Time) predicate.Anomaly

PeriodStartNotIn applies the NotIn predicate on the "period_start" field.

func Processed

func Processed(v bool) predicate.Anomaly

Processed applies equality check predicate on the "processed" field. It's identical to ProcessedEQ.

func ProcessedEQ

func ProcessedEQ(v bool) predicate.Anomaly

ProcessedEQ applies the EQ predicate on the "processed" field.

func ProcessedNEQ

func ProcessedNEQ(v bool) predicate.Anomaly

ProcessedNEQ applies the NEQ predicate on the "processed" field.

func Type

func Type(v string) predicate.Anomaly

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Anomaly

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Anomaly

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Anomaly

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Anomaly

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Anomaly

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Anomaly

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Anomaly

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Anomaly

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Anomaly

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Anomaly

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Anomaly

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Anomaly

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Anomaly

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Anomaly

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Anomaly

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Anomaly

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Anomaly

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Anomaly

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Anomaly

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Anomaly

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Anomaly

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Anomaly

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Value

func Value(v float64) predicate.Anomaly

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v float64) predicate.Anomaly

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v float64) predicate.Anomaly

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v float64) predicate.Anomaly

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...float64) predicate.Anomaly

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v float64) predicate.Anomaly

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v float64) predicate.Anomaly

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v float64) predicate.Anomaly

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...float64) predicate.Anomaly

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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