Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Alert) predicate.Alert
- func BucketId(v string) predicate.Alert
- func BucketIdContains(v string) predicate.Alert
- func BucketIdContainsFold(v string) predicate.Alert
- func BucketIdEQ(v string) predicate.Alert
- func BucketIdEqualFold(v string) predicate.Alert
- func BucketIdGT(v string) predicate.Alert
- func BucketIdGTE(v string) predicate.Alert
- func BucketIdHasPrefix(v string) predicate.Alert
- func BucketIdHasSuffix(v string) predicate.Alert
- func BucketIdIn(vs ...string) predicate.Alert
- func BucketIdIsNil() predicate.Alert
- func BucketIdLT(v string) predicate.Alert
- func BucketIdLTE(v string) predicate.Alert
- func BucketIdNEQ(v string) predicate.Alert
- func BucketIdNotIn(vs ...string) predicate.Alert
- func BucketIdNotNil() predicate.Alert
- func Capacity(v int32) predicate.Alert
- func CapacityEQ(v int32) predicate.Alert
- func CapacityGT(v int32) predicate.Alert
- func CapacityGTE(v int32) predicate.Alert
- func CapacityIn(vs ...int32) predicate.Alert
- func CapacityIsNil() predicate.Alert
- func CapacityLT(v int32) predicate.Alert
- func CapacityLTE(v int32) predicate.Alert
- func CapacityNEQ(v int32) predicate.Alert
- func CapacityNotIn(vs ...int32) predicate.Alert
- func CapacityNotNil() predicate.Alert
- func CreatedAt(v time.Time) predicate.Alert
- func CreatedAtEQ(v time.Time) predicate.Alert
- func CreatedAtGT(v time.Time) predicate.Alert
- func CreatedAtGTE(v time.Time) predicate.Alert
- func CreatedAtIn(vs ...time.Time) predicate.Alert
- func CreatedAtLT(v time.Time) predicate.Alert
- func CreatedAtLTE(v time.Time) predicate.Alert
- func CreatedAtNEQ(v time.Time) predicate.Alert
- func CreatedAtNotIn(vs ...time.Time) predicate.Alert
- func EventsCount(v int32) predicate.Alert
- func EventsCountEQ(v int32) predicate.Alert
- func EventsCountGT(v int32) predicate.Alert
- func EventsCountGTE(v int32) predicate.Alert
- func EventsCountIn(vs ...int32) predicate.Alert
- func EventsCountIsNil() predicate.Alert
- func EventsCountLT(v int32) predicate.Alert
- func EventsCountLTE(v int32) predicate.Alert
- func EventsCountNEQ(v int32) predicate.Alert
- func EventsCountNotIn(vs ...int32) predicate.Alert
- func EventsCountNotNil() predicate.Alert
- func HasDecisions() predicate.Alert
- func HasDecisionsWith(preds ...predicate.Decision) predicate.Alert
- func HasEvents() predicate.Alert
- func HasEventsWith(preds ...predicate.Event) predicate.Alert
- func HasMetas() predicate.Alert
- func HasMetasWith(preds ...predicate.Meta) predicate.Alert
- func HasOwner() predicate.Alert
- func HasOwnerWith(preds ...predicate.Machine) predicate.Alert
- func ID(id int) predicate.Alert
- func IDEQ(id int) predicate.Alert
- func IDGT(id int) predicate.Alert
- func IDGTE(id int) predicate.Alert
- func IDIn(ids ...int) predicate.Alert
- func IDLT(id int) predicate.Alert
- func IDLTE(id int) predicate.Alert
- func IDNEQ(id int) predicate.Alert
- func IDNotIn(ids ...int) predicate.Alert
- func LeakSpeed(v string) predicate.Alert
- func LeakSpeedContains(v string) predicate.Alert
- func LeakSpeedContainsFold(v string) predicate.Alert
- func LeakSpeedEQ(v string) predicate.Alert
- func LeakSpeedEqualFold(v string) predicate.Alert
- func LeakSpeedGT(v string) predicate.Alert
- func LeakSpeedGTE(v string) predicate.Alert
- func LeakSpeedHasPrefix(v string) predicate.Alert
- func LeakSpeedHasSuffix(v string) predicate.Alert
- func LeakSpeedIn(vs ...string) predicate.Alert
- func LeakSpeedIsNil() predicate.Alert
- func LeakSpeedLT(v string) predicate.Alert
- func LeakSpeedLTE(v string) predicate.Alert
- func LeakSpeedNEQ(v string) predicate.Alert
- func LeakSpeedNotIn(vs ...string) predicate.Alert
- func LeakSpeedNotNil() predicate.Alert
- func Message(v string) predicate.Alert
- func MessageContains(v string) predicate.Alert
- func MessageContainsFold(v string) predicate.Alert
- func MessageEQ(v string) predicate.Alert
- func MessageEqualFold(v string) predicate.Alert
- func MessageGT(v string) predicate.Alert
- func MessageGTE(v string) predicate.Alert
- func MessageHasPrefix(v string) predicate.Alert
- func MessageHasSuffix(v string) predicate.Alert
- func MessageIn(vs ...string) predicate.Alert
- func MessageIsNil() predicate.Alert
- func MessageLT(v string) predicate.Alert
- func MessageLTE(v string) predicate.Alert
- func MessageNEQ(v string) predicate.Alert
- func MessageNotIn(vs ...string) predicate.Alert
- func MessageNotNil() predicate.Alert
- func Not(p predicate.Alert) predicate.Alert
- func Or(predicates ...predicate.Alert) predicate.Alert
- func Scenario(v string) predicate.Alert
- func ScenarioContains(v string) predicate.Alert
- func ScenarioContainsFold(v string) predicate.Alert
- func ScenarioEQ(v string) predicate.Alert
- func ScenarioEqualFold(v string) predicate.Alert
- func ScenarioGT(v string) predicate.Alert
- func ScenarioGTE(v string) predicate.Alert
- func ScenarioHasPrefix(v string) predicate.Alert
- func ScenarioHasSuffix(v string) predicate.Alert
- func ScenarioHash(v string) predicate.Alert
- func ScenarioHashContains(v string) predicate.Alert
- func ScenarioHashContainsFold(v string) predicate.Alert
- func ScenarioHashEQ(v string) predicate.Alert
- func ScenarioHashEqualFold(v string) predicate.Alert
- func ScenarioHashGT(v string) predicate.Alert
- func ScenarioHashGTE(v string) predicate.Alert
- func ScenarioHashHasPrefix(v string) predicate.Alert
- func ScenarioHashHasSuffix(v string) predicate.Alert
- func ScenarioHashIn(vs ...string) predicate.Alert
- func ScenarioHashIsNil() predicate.Alert
- func ScenarioHashLT(v string) predicate.Alert
- func ScenarioHashLTE(v string) predicate.Alert
- func ScenarioHashNEQ(v string) predicate.Alert
- func ScenarioHashNotIn(vs ...string) predicate.Alert
- func ScenarioHashNotNil() predicate.Alert
- func ScenarioIn(vs ...string) predicate.Alert
- func ScenarioLT(v string) predicate.Alert
- func ScenarioLTE(v string) predicate.Alert
- func ScenarioNEQ(v string) predicate.Alert
- func ScenarioNotIn(vs ...string) predicate.Alert
- func ScenarioVersion(v string) predicate.Alert
- func ScenarioVersionContains(v string) predicate.Alert
- func ScenarioVersionContainsFold(v string) predicate.Alert
- func ScenarioVersionEQ(v string) predicate.Alert
- func ScenarioVersionEqualFold(v string) predicate.Alert
- func ScenarioVersionGT(v string) predicate.Alert
- func ScenarioVersionGTE(v string) predicate.Alert
- func ScenarioVersionHasPrefix(v string) predicate.Alert
- func ScenarioVersionHasSuffix(v string) predicate.Alert
- func ScenarioVersionIn(vs ...string) predicate.Alert
- func ScenarioVersionIsNil() predicate.Alert
- func ScenarioVersionLT(v string) predicate.Alert
- func ScenarioVersionLTE(v string) predicate.Alert
- func ScenarioVersionNEQ(v string) predicate.Alert
- func ScenarioVersionNotIn(vs ...string) predicate.Alert
- func ScenarioVersionNotNil() predicate.Alert
- func Simulated(v bool) predicate.Alert
- func SimulatedEQ(v bool) predicate.Alert
- func SimulatedNEQ(v bool) predicate.Alert
- func SourceAsName(v string) predicate.Alert
- func SourceAsNameContains(v string) predicate.Alert
- func SourceAsNameContainsFold(v string) predicate.Alert
- func SourceAsNameEQ(v string) predicate.Alert
- func SourceAsNameEqualFold(v string) predicate.Alert
- func SourceAsNameGT(v string) predicate.Alert
- func SourceAsNameGTE(v string) predicate.Alert
- func SourceAsNameHasPrefix(v string) predicate.Alert
- func SourceAsNameHasSuffix(v string) predicate.Alert
- func SourceAsNameIn(vs ...string) predicate.Alert
- func SourceAsNameIsNil() predicate.Alert
- func SourceAsNameLT(v string) predicate.Alert
- func SourceAsNameLTE(v string) predicate.Alert
- func SourceAsNameNEQ(v string) predicate.Alert
- func SourceAsNameNotIn(vs ...string) predicate.Alert
- func SourceAsNameNotNil() predicate.Alert
- func SourceAsNumber(v string) predicate.Alert
- func SourceAsNumberContains(v string) predicate.Alert
- func SourceAsNumberContainsFold(v string) predicate.Alert
- func SourceAsNumberEQ(v string) predicate.Alert
- func SourceAsNumberEqualFold(v string) predicate.Alert
- func SourceAsNumberGT(v string) predicate.Alert
- func SourceAsNumberGTE(v string) predicate.Alert
- func SourceAsNumberHasPrefix(v string) predicate.Alert
- func SourceAsNumberHasSuffix(v string) predicate.Alert
- func SourceAsNumberIn(vs ...string) predicate.Alert
- func SourceAsNumberIsNil() predicate.Alert
- func SourceAsNumberLT(v string) predicate.Alert
- func SourceAsNumberLTE(v string) predicate.Alert
- func SourceAsNumberNEQ(v string) predicate.Alert
- func SourceAsNumberNotIn(vs ...string) predicate.Alert
- func SourceAsNumberNotNil() predicate.Alert
- func SourceCountry(v string) predicate.Alert
- func SourceCountryContains(v string) predicate.Alert
- func SourceCountryContainsFold(v string) predicate.Alert
- func SourceCountryEQ(v string) predicate.Alert
- func SourceCountryEqualFold(v string) predicate.Alert
- func SourceCountryGT(v string) predicate.Alert
- func SourceCountryGTE(v string) predicate.Alert
- func SourceCountryHasPrefix(v string) predicate.Alert
- func SourceCountryHasSuffix(v string) predicate.Alert
- func SourceCountryIn(vs ...string) predicate.Alert
- func SourceCountryIsNil() predicate.Alert
- func SourceCountryLT(v string) predicate.Alert
- func SourceCountryLTE(v string) predicate.Alert
- func SourceCountryNEQ(v string) predicate.Alert
- func SourceCountryNotIn(vs ...string) predicate.Alert
- func SourceCountryNotNil() predicate.Alert
- func SourceIp(v string) predicate.Alert
- func SourceIpContains(v string) predicate.Alert
- func SourceIpContainsFold(v string) predicate.Alert
- func SourceIpEQ(v string) predicate.Alert
- func SourceIpEqualFold(v string) predicate.Alert
- func SourceIpGT(v string) predicate.Alert
- func SourceIpGTE(v string) predicate.Alert
- func SourceIpHasPrefix(v string) predicate.Alert
- func SourceIpHasSuffix(v string) predicate.Alert
- func SourceIpIn(vs ...string) predicate.Alert
- func SourceIpIsNil() predicate.Alert
- func SourceIpLT(v string) predicate.Alert
- func SourceIpLTE(v string) predicate.Alert
- func SourceIpNEQ(v string) predicate.Alert
- func SourceIpNotIn(vs ...string) predicate.Alert
- func SourceIpNotNil() predicate.Alert
- func SourceLatitude(v float32) predicate.Alert
- func SourceLatitudeEQ(v float32) predicate.Alert
- func SourceLatitudeGT(v float32) predicate.Alert
- func SourceLatitudeGTE(v float32) predicate.Alert
- func SourceLatitudeIn(vs ...float32) predicate.Alert
- func SourceLatitudeIsNil() predicate.Alert
- func SourceLatitudeLT(v float32) predicate.Alert
- func SourceLatitudeLTE(v float32) predicate.Alert
- func SourceLatitudeNEQ(v float32) predicate.Alert
- func SourceLatitudeNotIn(vs ...float32) predicate.Alert
- func SourceLatitudeNotNil() predicate.Alert
- func SourceLongitude(v float32) predicate.Alert
- func SourceLongitudeEQ(v float32) predicate.Alert
- func SourceLongitudeGT(v float32) predicate.Alert
- func SourceLongitudeGTE(v float32) predicate.Alert
- func SourceLongitudeIn(vs ...float32) predicate.Alert
- func SourceLongitudeIsNil() predicate.Alert
- func SourceLongitudeLT(v float32) predicate.Alert
- func SourceLongitudeLTE(v float32) predicate.Alert
- func SourceLongitudeNEQ(v float32) predicate.Alert
- func SourceLongitudeNotIn(vs ...float32) predicate.Alert
- func SourceLongitudeNotNil() predicate.Alert
- func SourceRange(v string) predicate.Alert
- func SourceRangeContains(v string) predicate.Alert
- func SourceRangeContainsFold(v string) predicate.Alert
- func SourceRangeEQ(v string) predicate.Alert
- func SourceRangeEqualFold(v string) predicate.Alert
- func SourceRangeGT(v string) predicate.Alert
- func SourceRangeGTE(v string) predicate.Alert
- func SourceRangeHasPrefix(v string) predicate.Alert
- func SourceRangeHasSuffix(v string) predicate.Alert
- func SourceRangeIn(vs ...string) predicate.Alert
- func SourceRangeIsNil() predicate.Alert
- func SourceRangeLT(v string) predicate.Alert
- func SourceRangeLTE(v string) predicate.Alert
- func SourceRangeNEQ(v string) predicate.Alert
- func SourceRangeNotIn(vs ...string) predicate.Alert
- func SourceRangeNotNil() predicate.Alert
- func SourceScope(v string) predicate.Alert
- func SourceScopeContains(v string) predicate.Alert
- func SourceScopeContainsFold(v string) predicate.Alert
- func SourceScopeEQ(v string) predicate.Alert
- func SourceScopeEqualFold(v string) predicate.Alert
- func SourceScopeGT(v string) predicate.Alert
- func SourceScopeGTE(v string) predicate.Alert
- func SourceScopeHasPrefix(v string) predicate.Alert
- func SourceScopeHasSuffix(v string) predicate.Alert
- func SourceScopeIn(vs ...string) predicate.Alert
- func SourceScopeIsNil() predicate.Alert
- func SourceScopeLT(v string) predicate.Alert
- func SourceScopeLTE(v string) predicate.Alert
- func SourceScopeNEQ(v string) predicate.Alert
- func SourceScopeNotIn(vs ...string) predicate.Alert
- func SourceScopeNotNil() predicate.Alert
- func SourceValue(v string) predicate.Alert
- func SourceValueContains(v string) predicate.Alert
- func SourceValueContainsFold(v string) predicate.Alert
- func SourceValueEQ(v string) predicate.Alert
- func SourceValueEqualFold(v string) predicate.Alert
- func SourceValueGT(v string) predicate.Alert
- func SourceValueGTE(v string) predicate.Alert
- func SourceValueHasPrefix(v string) predicate.Alert
- func SourceValueHasSuffix(v string) predicate.Alert
- func SourceValueIn(vs ...string) predicate.Alert
- func SourceValueIsNil() predicate.Alert
- func SourceValueLT(v string) predicate.Alert
- func SourceValueLTE(v string) predicate.Alert
- func SourceValueNEQ(v string) predicate.Alert
- func SourceValueNotIn(vs ...string) predicate.Alert
- func SourceValueNotNil() predicate.Alert
- func StartedAt(v time.Time) predicate.Alert
- func StartedAtEQ(v time.Time) predicate.Alert
- func StartedAtGT(v time.Time) predicate.Alert
- func StartedAtGTE(v time.Time) predicate.Alert
- func StartedAtIn(vs ...time.Time) predicate.Alert
- func StartedAtIsNil() predicate.Alert
- func StartedAtLT(v time.Time) predicate.Alert
- func StartedAtLTE(v time.Time) predicate.Alert
- func StartedAtNEQ(v time.Time) predicate.Alert
- func StartedAtNotIn(vs ...time.Time) predicate.Alert
- func StartedAtNotNil() predicate.Alert
- func StoppedAt(v time.Time) predicate.Alert
- func StoppedAtEQ(v time.Time) predicate.Alert
- func StoppedAtGT(v time.Time) predicate.Alert
- func StoppedAtGTE(v time.Time) predicate.Alert
- func StoppedAtIn(vs ...time.Time) predicate.Alert
- func StoppedAtIsNil() predicate.Alert
- func StoppedAtLT(v time.Time) predicate.Alert
- func StoppedAtLTE(v time.Time) predicate.Alert
- func StoppedAtNEQ(v time.Time) predicate.Alert
- func StoppedAtNotIn(vs ...time.Time) predicate.Alert
- func StoppedAtNotNil() predicate.Alert
- func UUID(v string) predicate.Alert
- func UUIDContains(v string) predicate.Alert
- func UUIDContainsFold(v string) predicate.Alert
- func UUIDEQ(v string) predicate.Alert
- func UUIDEqualFold(v string) predicate.Alert
- func UUIDGT(v string) predicate.Alert
- func UUIDGTE(v string) predicate.Alert
- func UUIDHasPrefix(v string) predicate.Alert
- func UUIDHasSuffix(v string) predicate.Alert
- func UUIDIn(vs ...string) predicate.Alert
- func UUIDIsNil() predicate.Alert
- func UUIDLT(v string) predicate.Alert
- func UUIDLTE(v string) predicate.Alert
- func UUIDNEQ(v string) predicate.Alert
- func UUIDNotIn(vs ...string) predicate.Alert
- func UUIDNotNil() predicate.Alert
- func UpdatedAt(v time.Time) predicate.Alert
- func UpdatedAtEQ(v time.Time) predicate.Alert
- func UpdatedAtGT(v time.Time) predicate.Alert
- func UpdatedAtGTE(v time.Time) predicate.Alert
- func UpdatedAtIn(vs ...time.Time) predicate.Alert
- func UpdatedAtLT(v time.Time) predicate.Alert
- func UpdatedAtLTE(v time.Time) predicate.Alert
- func UpdatedAtNEQ(v time.Time) predicate.Alert
- func UpdatedAtNotIn(vs ...time.Time) predicate.Alert
- func ValidColumn(column string) bool
- type OrderOption
- func ByBucketId(opts ...sql.OrderTermOption) OrderOption
- func ByCapacity(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDecisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDecisionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEventsCountField(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLeakSpeed(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func ByMetas(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMetasCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByScenario(opts ...sql.OrderTermOption) OrderOption
- func ByScenarioHash(opts ...sql.OrderTermOption) OrderOption
- func ByScenarioVersion(opts ...sql.OrderTermOption) OrderOption
- func BySimulated(opts ...sql.OrderTermOption) OrderOption
- func BySourceAsName(opts ...sql.OrderTermOption) OrderOption
- func BySourceAsNumber(opts ...sql.OrderTermOption) OrderOption
- func BySourceCountry(opts ...sql.OrderTermOption) OrderOption
- func BySourceIp(opts ...sql.OrderTermOption) OrderOption
- func BySourceLatitude(opts ...sql.OrderTermOption) OrderOption
- func BySourceLongitude(opts ...sql.OrderTermOption) OrderOption
- func BySourceRange(opts ...sql.OrderTermOption) OrderOption
- func BySourceScope(opts ...sql.OrderTermOption) OrderOption
- func BySourceValue(opts ...sql.OrderTermOption) OrderOption
- func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStoppedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUUID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the alert type in the database. Label = "alert" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldScenario holds the string denoting the scenario field in the database. FieldScenario = "scenario" // FieldBucketId holds the string denoting the bucketid field in the database. FieldBucketId = "bucket_id" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldEventsCount holds the string denoting the eventscount field in the database. FieldEventsCount = "events_count" // FieldStartedAt holds the string denoting the startedat field in the database. FieldStartedAt = "started_at" // FieldStoppedAt holds the string denoting the stoppedat field in the database. FieldStoppedAt = "stopped_at" // FieldSourceIp holds the string denoting the sourceip field in the database. FieldSourceIp = "source_ip" // FieldSourceRange holds the string denoting the sourcerange field in the database. FieldSourceRange = "source_range" // FieldSourceAsNumber holds the string denoting the sourceasnumber field in the database. FieldSourceAsNumber = "source_as_number" // FieldSourceAsName holds the string denoting the sourceasname field in the database. FieldSourceAsName = "source_as_name" // FieldSourceCountry holds the string denoting the sourcecountry field in the database. FieldSourceCountry = "source_country" // FieldSourceLatitude holds the string denoting the sourcelatitude field in the database. FieldSourceLatitude = "source_latitude" // FieldSourceLongitude holds the string denoting the sourcelongitude field in the database. FieldSourceLongitude = "source_longitude" // FieldSourceScope holds the string denoting the sourcescope field in the database. FieldSourceScope = "source_scope" // FieldSourceValue holds the string denoting the sourcevalue field in the database. FieldSourceValue = "source_value" // FieldCapacity holds the string denoting the capacity field in the database. FieldCapacity = "capacity" // FieldLeakSpeed holds the string denoting the leakspeed field in the database. FieldLeakSpeed = "leak_speed" // FieldScenarioVersion holds the string denoting the scenarioversion field in the database. FieldScenarioVersion = "scenario_version" // FieldScenarioHash holds the string denoting the scenariohash field in the database. FieldScenarioHash = "scenario_hash" // FieldSimulated holds the string denoting the simulated field in the database. FieldSimulated = "simulated" // FieldUUID holds the string denoting the uuid field in the database. FieldUUID = "uuid" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeDecisions holds the string denoting the decisions edge name in mutations. EdgeDecisions = "decisions" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // EdgeMetas holds the string denoting the metas edge name in mutations. EdgeMetas = "metas" // Table holds the table name of the alert in the database. Table = "alerts" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "alerts" // OwnerInverseTable is the table name for the Machine entity. // It exists in this package in order to avoid circular dependency with the "machine" package. OwnerInverseTable = "machines" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "machine_alerts" // DecisionsTable is the table that holds the decisions relation/edge. DecisionsTable = "decisions" // DecisionsInverseTable is the table name for the Decision entity. // It exists in this package in order to avoid circular dependency with the "decision" package. DecisionsInverseTable = "decisions" // DecisionsColumn is the table column denoting the decisions relation/edge. DecisionsColumn = "alert_decisions" // EventsTable is the table that holds the events relation/edge. EventsTable = "events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" // EventsColumn is the table column denoting the events relation/edge. EventsColumn = "alert_events" // MetasTable is the table that holds the metas relation/edge. MetasTable = "meta" // MetasInverseTable is the table name for the Meta entity. // It exists in this package in order to avoid circular dependency with the "meta" package. MetasInverseTable = "meta" // MetasColumn is the table column denoting the metas relation/edge. MetasColumn = "alert_metas" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultBucketId holds the default value on creation for the "bucketId" field. DefaultBucketId string // DefaultMessage holds the default value on creation for the "message" field. DefaultMessage string // DefaultEventsCount holds the default value on creation for the "eventsCount" field. DefaultEventsCount int32 // DefaultStartedAt holds the default value on creation for the "startedAt" field. DefaultStartedAt func() time.Time // DefaultStoppedAt holds the default value on creation for the "stoppedAt" field. DefaultStoppedAt func() time.Time // DefaultSimulated holds the default value on creation for the "simulated" field. DefaultSimulated bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldScenario, FieldBucketId, FieldMessage, FieldEventsCount, FieldStartedAt, FieldStoppedAt, FieldSourceIp, FieldSourceRange, FieldSourceAsNumber, FieldSourceAsName, FieldSourceCountry, FieldSourceLatitude, FieldSourceLongitude, FieldSourceScope, FieldSourceValue, FieldCapacity, FieldLeakSpeed, FieldScenarioVersion, FieldScenarioHash, FieldSimulated, FieldUUID, }
Columns holds all SQL columns for alert fields.
var ForeignKeys = []string{
"machine_alerts",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "alerts" table and are not defined as standalone fields in the schema.
Functions ¶
func BucketId ¶
BucketId applies equality check predicate on the "bucketId" field. It's identical to BucketIdEQ.
func BucketIdContains ¶
BucketIdContains applies the Contains predicate on the "bucketId" field.
func BucketIdContainsFold ¶
BucketIdContainsFold applies the ContainsFold predicate on the "bucketId" field.
func BucketIdEQ ¶
BucketIdEQ applies the EQ predicate on the "bucketId" field.
func BucketIdEqualFold ¶
BucketIdEqualFold applies the EqualFold predicate on the "bucketId" field.
func BucketIdGT ¶
BucketIdGT applies the GT predicate on the "bucketId" field.
func BucketIdGTE ¶
BucketIdGTE applies the GTE predicate on the "bucketId" field.
func BucketIdHasPrefix ¶
BucketIdHasPrefix applies the HasPrefix predicate on the "bucketId" field.
func BucketIdHasSuffix ¶
BucketIdHasSuffix applies the HasSuffix predicate on the "bucketId" field.
func BucketIdIn ¶
BucketIdIn applies the In predicate on the "bucketId" field.
func BucketIdIsNil ¶
BucketIdIsNil applies the IsNil predicate on the "bucketId" field.
func BucketIdLT ¶
BucketIdLT applies the LT predicate on the "bucketId" field.
func BucketIdLTE ¶
BucketIdLTE applies the LTE predicate on the "bucketId" field.
func BucketIdNEQ ¶
BucketIdNEQ applies the NEQ predicate on the "bucketId" field.
func BucketIdNotIn ¶
BucketIdNotIn applies the NotIn predicate on the "bucketId" field.
func BucketIdNotNil ¶
BucketIdNotNil applies the NotNil predicate on the "bucketId" field.
func Capacity ¶
Capacity applies equality check predicate on the "capacity" field. It's identical to CapacityEQ.
func CapacityEQ ¶
CapacityEQ applies the EQ predicate on the "capacity" field.
func CapacityGT ¶
CapacityGT applies the GT predicate on the "capacity" field.
func CapacityGTE ¶
CapacityGTE applies the GTE predicate on the "capacity" field.
func CapacityIn ¶
CapacityIn applies the In predicate on the "capacity" field.
func CapacityIsNil ¶
CapacityIsNil applies the IsNil predicate on the "capacity" field.
func CapacityLT ¶
CapacityLT applies the LT predicate on the "capacity" field.
func CapacityLTE ¶
CapacityLTE applies the LTE predicate on the "capacity" field.
func CapacityNEQ ¶
CapacityNEQ applies the NEQ predicate on the "capacity" field.
func CapacityNotIn ¶
CapacityNotIn applies the NotIn predicate on the "capacity" field.
func CapacityNotNil ¶
CapacityNotNil applies the NotNil predicate on the "capacity" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func EventsCount ¶
EventsCount applies equality check predicate on the "eventsCount" field. It's identical to EventsCountEQ.
func EventsCountEQ ¶
EventsCountEQ applies the EQ predicate on the "eventsCount" field.
func EventsCountGT ¶
EventsCountGT applies the GT predicate on the "eventsCount" field.
func EventsCountGTE ¶
EventsCountGTE applies the GTE predicate on the "eventsCount" field.
func EventsCountIn ¶
EventsCountIn applies the In predicate on the "eventsCount" field.
func EventsCountIsNil ¶
EventsCountIsNil applies the IsNil predicate on the "eventsCount" field.
func EventsCountLT ¶
EventsCountLT applies the LT predicate on the "eventsCount" field.
func EventsCountLTE ¶
EventsCountLTE applies the LTE predicate on the "eventsCount" field.
func EventsCountNEQ ¶
EventsCountNEQ applies the NEQ predicate on the "eventsCount" field.
func EventsCountNotIn ¶
EventsCountNotIn applies the NotIn predicate on the "eventsCount" field.
func EventsCountNotNil ¶
EventsCountNotNil applies the NotNil predicate on the "eventsCount" field.
func HasDecisions ¶
HasDecisions applies the HasEdge predicate on the "decisions" edge.
func HasDecisionsWith ¶
HasDecisionsWith applies the HasEdge predicate on the "decisions" edge with a given conditions (other predicates).
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasMetasWith ¶
HasMetasWith applies the HasEdge predicate on the "metas" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func LeakSpeed ¶
LeakSpeed applies equality check predicate on the "leakSpeed" field. It's identical to LeakSpeedEQ.
func LeakSpeedContains ¶
LeakSpeedContains applies the Contains predicate on the "leakSpeed" field.
func LeakSpeedContainsFold ¶
LeakSpeedContainsFold applies the ContainsFold predicate on the "leakSpeed" field.
func LeakSpeedEQ ¶
LeakSpeedEQ applies the EQ predicate on the "leakSpeed" field.
func LeakSpeedEqualFold ¶
LeakSpeedEqualFold applies the EqualFold predicate on the "leakSpeed" field.
func LeakSpeedGT ¶
LeakSpeedGT applies the GT predicate on the "leakSpeed" field.
func LeakSpeedGTE ¶
LeakSpeedGTE applies the GTE predicate on the "leakSpeed" field.
func LeakSpeedHasPrefix ¶
LeakSpeedHasPrefix applies the HasPrefix predicate on the "leakSpeed" field.
func LeakSpeedHasSuffix ¶
LeakSpeedHasSuffix applies the HasSuffix predicate on the "leakSpeed" field.
func LeakSpeedIn ¶
LeakSpeedIn applies the In predicate on the "leakSpeed" field.
func LeakSpeedIsNil ¶
LeakSpeedIsNil applies the IsNil predicate on the "leakSpeed" field.
func LeakSpeedLT ¶
LeakSpeedLT applies the LT predicate on the "leakSpeed" field.
func LeakSpeedLTE ¶
LeakSpeedLTE applies the LTE predicate on the "leakSpeed" field.
func LeakSpeedNEQ ¶
LeakSpeedNEQ applies the NEQ predicate on the "leakSpeed" field.
func LeakSpeedNotIn ¶
LeakSpeedNotIn applies the NotIn predicate on the "leakSpeed" field.
func LeakSpeedNotNil ¶
LeakSpeedNotNil applies the NotNil predicate on the "leakSpeed" field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageIsNil ¶
MessageIsNil applies the IsNil predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func MessageNotNil ¶
MessageNotNil applies the NotNil predicate on the "message" field.
func Scenario ¶
Scenario applies equality check predicate on the "scenario" field. It's identical to ScenarioEQ.
func ScenarioContains ¶
ScenarioContains applies the Contains predicate on the "scenario" field.
func ScenarioContainsFold ¶
ScenarioContainsFold applies the ContainsFold predicate on the "scenario" field.
func ScenarioEQ ¶
ScenarioEQ applies the EQ predicate on the "scenario" field.
func ScenarioEqualFold ¶
ScenarioEqualFold applies the EqualFold predicate on the "scenario" field.
func ScenarioGT ¶
ScenarioGT applies the GT predicate on the "scenario" field.
func ScenarioGTE ¶
ScenarioGTE applies the GTE predicate on the "scenario" field.
func ScenarioHasPrefix ¶
ScenarioHasPrefix applies the HasPrefix predicate on the "scenario" field.
func ScenarioHasSuffix ¶
ScenarioHasSuffix applies the HasSuffix predicate on the "scenario" field.
func ScenarioHash ¶
ScenarioHash applies equality check predicate on the "scenarioHash" field. It's identical to ScenarioHashEQ.
func ScenarioHashContains ¶
ScenarioHashContains applies the Contains predicate on the "scenarioHash" field.
func ScenarioHashContainsFold ¶
ScenarioHashContainsFold applies the ContainsFold predicate on the "scenarioHash" field.
func ScenarioHashEQ ¶
ScenarioHashEQ applies the EQ predicate on the "scenarioHash" field.
func ScenarioHashEqualFold ¶
ScenarioHashEqualFold applies the EqualFold predicate on the "scenarioHash" field.
func ScenarioHashGT ¶
ScenarioHashGT applies the GT predicate on the "scenarioHash" field.
func ScenarioHashGTE ¶
ScenarioHashGTE applies the GTE predicate on the "scenarioHash" field.
func ScenarioHashHasPrefix ¶
ScenarioHashHasPrefix applies the HasPrefix predicate on the "scenarioHash" field.
func ScenarioHashHasSuffix ¶
ScenarioHashHasSuffix applies the HasSuffix predicate on the "scenarioHash" field.
func ScenarioHashIn ¶
ScenarioHashIn applies the In predicate on the "scenarioHash" field.
func ScenarioHashIsNil ¶
ScenarioHashIsNil applies the IsNil predicate on the "scenarioHash" field.
func ScenarioHashLT ¶
ScenarioHashLT applies the LT predicate on the "scenarioHash" field.
func ScenarioHashLTE ¶
ScenarioHashLTE applies the LTE predicate on the "scenarioHash" field.
func ScenarioHashNEQ ¶
ScenarioHashNEQ applies the NEQ predicate on the "scenarioHash" field.
func ScenarioHashNotIn ¶
ScenarioHashNotIn applies the NotIn predicate on the "scenarioHash" field.
func ScenarioHashNotNil ¶
ScenarioHashNotNil applies the NotNil predicate on the "scenarioHash" field.
func ScenarioIn ¶
ScenarioIn applies the In predicate on the "scenario" field.
func ScenarioLT ¶
ScenarioLT applies the LT predicate on the "scenario" field.
func ScenarioLTE ¶
ScenarioLTE applies the LTE predicate on the "scenario" field.
func ScenarioNEQ ¶
ScenarioNEQ applies the NEQ predicate on the "scenario" field.
func ScenarioNotIn ¶
ScenarioNotIn applies the NotIn predicate on the "scenario" field.
func ScenarioVersion ¶
ScenarioVersion applies equality check predicate on the "scenarioVersion" field. It's identical to ScenarioVersionEQ.
func ScenarioVersionContains ¶
ScenarioVersionContains applies the Contains predicate on the "scenarioVersion" field.
func ScenarioVersionContainsFold ¶
ScenarioVersionContainsFold applies the ContainsFold predicate on the "scenarioVersion" field.
func ScenarioVersionEQ ¶
ScenarioVersionEQ applies the EQ predicate on the "scenarioVersion" field.
func ScenarioVersionEqualFold ¶
ScenarioVersionEqualFold applies the EqualFold predicate on the "scenarioVersion" field.
func ScenarioVersionGT ¶
ScenarioVersionGT applies the GT predicate on the "scenarioVersion" field.
func ScenarioVersionGTE ¶
ScenarioVersionGTE applies the GTE predicate on the "scenarioVersion" field.
func ScenarioVersionHasPrefix ¶
ScenarioVersionHasPrefix applies the HasPrefix predicate on the "scenarioVersion" field.
func ScenarioVersionHasSuffix ¶
ScenarioVersionHasSuffix applies the HasSuffix predicate on the "scenarioVersion" field.
func ScenarioVersionIn ¶
ScenarioVersionIn applies the In predicate on the "scenarioVersion" field.
func ScenarioVersionIsNil ¶
ScenarioVersionIsNil applies the IsNil predicate on the "scenarioVersion" field.
func ScenarioVersionLT ¶
ScenarioVersionLT applies the LT predicate on the "scenarioVersion" field.
func ScenarioVersionLTE ¶
ScenarioVersionLTE applies the LTE predicate on the "scenarioVersion" field.
func ScenarioVersionNEQ ¶
ScenarioVersionNEQ applies the NEQ predicate on the "scenarioVersion" field.
func ScenarioVersionNotIn ¶
ScenarioVersionNotIn applies the NotIn predicate on the "scenarioVersion" field.
func ScenarioVersionNotNil ¶
ScenarioVersionNotNil applies the NotNil predicate on the "scenarioVersion" field.
func Simulated ¶
Simulated applies equality check predicate on the "simulated" field. It's identical to SimulatedEQ.
func SimulatedEQ ¶
SimulatedEQ applies the EQ predicate on the "simulated" field.
func SimulatedNEQ ¶
SimulatedNEQ applies the NEQ predicate on the "simulated" field.
func SourceAsName ¶
SourceAsName applies equality check predicate on the "sourceAsName" field. It's identical to SourceAsNameEQ.
func SourceAsNameContains ¶
SourceAsNameContains applies the Contains predicate on the "sourceAsName" field.
func SourceAsNameContainsFold ¶
SourceAsNameContainsFold applies the ContainsFold predicate on the "sourceAsName" field.
func SourceAsNameEQ ¶
SourceAsNameEQ applies the EQ predicate on the "sourceAsName" field.
func SourceAsNameEqualFold ¶
SourceAsNameEqualFold applies the EqualFold predicate on the "sourceAsName" field.
func SourceAsNameGT ¶
SourceAsNameGT applies the GT predicate on the "sourceAsName" field.
func SourceAsNameGTE ¶
SourceAsNameGTE applies the GTE predicate on the "sourceAsName" field.
func SourceAsNameHasPrefix ¶
SourceAsNameHasPrefix applies the HasPrefix predicate on the "sourceAsName" field.
func SourceAsNameHasSuffix ¶
SourceAsNameHasSuffix applies the HasSuffix predicate on the "sourceAsName" field.
func SourceAsNameIn ¶
SourceAsNameIn applies the In predicate on the "sourceAsName" field.
func SourceAsNameIsNil ¶
SourceAsNameIsNil applies the IsNil predicate on the "sourceAsName" field.
func SourceAsNameLT ¶
SourceAsNameLT applies the LT predicate on the "sourceAsName" field.
func SourceAsNameLTE ¶
SourceAsNameLTE applies the LTE predicate on the "sourceAsName" field.
func SourceAsNameNEQ ¶
SourceAsNameNEQ applies the NEQ predicate on the "sourceAsName" field.
func SourceAsNameNotIn ¶
SourceAsNameNotIn applies the NotIn predicate on the "sourceAsName" field.
func SourceAsNameNotNil ¶
SourceAsNameNotNil applies the NotNil predicate on the "sourceAsName" field.
func SourceAsNumber ¶
SourceAsNumber applies equality check predicate on the "sourceAsNumber" field. It's identical to SourceAsNumberEQ.
func SourceAsNumberContains ¶
SourceAsNumberContains applies the Contains predicate on the "sourceAsNumber" field.
func SourceAsNumberContainsFold ¶
SourceAsNumberContainsFold applies the ContainsFold predicate on the "sourceAsNumber" field.
func SourceAsNumberEQ ¶
SourceAsNumberEQ applies the EQ predicate on the "sourceAsNumber" field.
func SourceAsNumberEqualFold ¶
SourceAsNumberEqualFold applies the EqualFold predicate on the "sourceAsNumber" field.
func SourceAsNumberGT ¶
SourceAsNumberGT applies the GT predicate on the "sourceAsNumber" field.
func SourceAsNumberGTE ¶
SourceAsNumberGTE applies the GTE predicate on the "sourceAsNumber" field.
func SourceAsNumberHasPrefix ¶
SourceAsNumberHasPrefix applies the HasPrefix predicate on the "sourceAsNumber" field.
func SourceAsNumberHasSuffix ¶
SourceAsNumberHasSuffix applies the HasSuffix predicate on the "sourceAsNumber" field.
func SourceAsNumberIn ¶
SourceAsNumberIn applies the In predicate on the "sourceAsNumber" field.
func SourceAsNumberIsNil ¶
SourceAsNumberIsNil applies the IsNil predicate on the "sourceAsNumber" field.
func SourceAsNumberLT ¶
SourceAsNumberLT applies the LT predicate on the "sourceAsNumber" field.
func SourceAsNumberLTE ¶
SourceAsNumberLTE applies the LTE predicate on the "sourceAsNumber" field.
func SourceAsNumberNEQ ¶
SourceAsNumberNEQ applies the NEQ predicate on the "sourceAsNumber" field.
func SourceAsNumberNotIn ¶
SourceAsNumberNotIn applies the NotIn predicate on the "sourceAsNumber" field.
func SourceAsNumberNotNil ¶
SourceAsNumberNotNil applies the NotNil predicate on the "sourceAsNumber" field.
func SourceCountry ¶
SourceCountry applies equality check predicate on the "sourceCountry" field. It's identical to SourceCountryEQ.
func SourceCountryContains ¶
SourceCountryContains applies the Contains predicate on the "sourceCountry" field.
func SourceCountryContainsFold ¶
SourceCountryContainsFold applies the ContainsFold predicate on the "sourceCountry" field.
func SourceCountryEQ ¶
SourceCountryEQ applies the EQ predicate on the "sourceCountry" field.
func SourceCountryEqualFold ¶
SourceCountryEqualFold applies the EqualFold predicate on the "sourceCountry" field.
func SourceCountryGT ¶
SourceCountryGT applies the GT predicate on the "sourceCountry" field.
func SourceCountryGTE ¶
SourceCountryGTE applies the GTE predicate on the "sourceCountry" field.
func SourceCountryHasPrefix ¶
SourceCountryHasPrefix applies the HasPrefix predicate on the "sourceCountry" field.
func SourceCountryHasSuffix ¶
SourceCountryHasSuffix applies the HasSuffix predicate on the "sourceCountry" field.
func SourceCountryIn ¶
SourceCountryIn applies the In predicate on the "sourceCountry" field.
func SourceCountryIsNil ¶
SourceCountryIsNil applies the IsNil predicate on the "sourceCountry" field.
func SourceCountryLT ¶
SourceCountryLT applies the LT predicate on the "sourceCountry" field.
func SourceCountryLTE ¶
SourceCountryLTE applies the LTE predicate on the "sourceCountry" field.
func SourceCountryNEQ ¶
SourceCountryNEQ applies the NEQ predicate on the "sourceCountry" field.
func SourceCountryNotIn ¶
SourceCountryNotIn applies the NotIn predicate on the "sourceCountry" field.
func SourceCountryNotNil ¶
SourceCountryNotNil applies the NotNil predicate on the "sourceCountry" field.
func SourceIp ¶
SourceIp applies equality check predicate on the "sourceIp" field. It's identical to SourceIpEQ.
func SourceIpContains ¶
SourceIpContains applies the Contains predicate on the "sourceIp" field.
func SourceIpContainsFold ¶
SourceIpContainsFold applies the ContainsFold predicate on the "sourceIp" field.
func SourceIpEQ ¶
SourceIpEQ applies the EQ predicate on the "sourceIp" field.
func SourceIpEqualFold ¶
SourceIpEqualFold applies the EqualFold predicate on the "sourceIp" field.
func SourceIpGT ¶
SourceIpGT applies the GT predicate on the "sourceIp" field.
func SourceIpGTE ¶
SourceIpGTE applies the GTE predicate on the "sourceIp" field.
func SourceIpHasPrefix ¶
SourceIpHasPrefix applies the HasPrefix predicate on the "sourceIp" field.
func SourceIpHasSuffix ¶
SourceIpHasSuffix applies the HasSuffix predicate on the "sourceIp" field.
func SourceIpIn ¶
SourceIpIn applies the In predicate on the "sourceIp" field.
func SourceIpIsNil ¶
SourceIpIsNil applies the IsNil predicate on the "sourceIp" field.
func SourceIpLT ¶
SourceIpLT applies the LT predicate on the "sourceIp" field.
func SourceIpLTE ¶
SourceIpLTE applies the LTE predicate on the "sourceIp" field.
func SourceIpNEQ ¶
SourceIpNEQ applies the NEQ predicate on the "sourceIp" field.
func SourceIpNotIn ¶
SourceIpNotIn applies the NotIn predicate on the "sourceIp" field.
func SourceIpNotNil ¶
SourceIpNotNil applies the NotNil predicate on the "sourceIp" field.
func SourceLatitude ¶
SourceLatitude applies equality check predicate on the "sourceLatitude" field. It's identical to SourceLatitudeEQ.
func SourceLatitudeEQ ¶
SourceLatitudeEQ applies the EQ predicate on the "sourceLatitude" field.
func SourceLatitudeGT ¶
SourceLatitudeGT applies the GT predicate on the "sourceLatitude" field.
func SourceLatitudeGTE ¶
SourceLatitudeGTE applies the GTE predicate on the "sourceLatitude" field.
func SourceLatitudeIn ¶
SourceLatitudeIn applies the In predicate on the "sourceLatitude" field.
func SourceLatitudeIsNil ¶
SourceLatitudeIsNil applies the IsNil predicate on the "sourceLatitude" field.
func SourceLatitudeLT ¶
SourceLatitudeLT applies the LT predicate on the "sourceLatitude" field.
func SourceLatitudeLTE ¶
SourceLatitudeLTE applies the LTE predicate on the "sourceLatitude" field.
func SourceLatitudeNEQ ¶
SourceLatitudeNEQ applies the NEQ predicate on the "sourceLatitude" field.
func SourceLatitudeNotIn ¶
SourceLatitudeNotIn applies the NotIn predicate on the "sourceLatitude" field.
func SourceLatitudeNotNil ¶
SourceLatitudeNotNil applies the NotNil predicate on the "sourceLatitude" field.
func SourceLongitude ¶
SourceLongitude applies equality check predicate on the "sourceLongitude" field. It's identical to SourceLongitudeEQ.
func SourceLongitudeEQ ¶
SourceLongitudeEQ applies the EQ predicate on the "sourceLongitude" field.
func SourceLongitudeGT ¶
SourceLongitudeGT applies the GT predicate on the "sourceLongitude" field.
func SourceLongitudeGTE ¶
SourceLongitudeGTE applies the GTE predicate on the "sourceLongitude" field.
func SourceLongitudeIn ¶
SourceLongitudeIn applies the In predicate on the "sourceLongitude" field.
func SourceLongitudeIsNil ¶
SourceLongitudeIsNil applies the IsNil predicate on the "sourceLongitude" field.
func SourceLongitudeLT ¶
SourceLongitudeLT applies the LT predicate on the "sourceLongitude" field.
func SourceLongitudeLTE ¶
SourceLongitudeLTE applies the LTE predicate on the "sourceLongitude" field.
func SourceLongitudeNEQ ¶
SourceLongitudeNEQ applies the NEQ predicate on the "sourceLongitude" field.
func SourceLongitudeNotIn ¶
SourceLongitudeNotIn applies the NotIn predicate on the "sourceLongitude" field.
func SourceLongitudeNotNil ¶
SourceLongitudeNotNil applies the NotNil predicate on the "sourceLongitude" field.
func SourceRange ¶
SourceRange applies equality check predicate on the "sourceRange" field. It's identical to SourceRangeEQ.
func SourceRangeContains ¶
SourceRangeContains applies the Contains predicate on the "sourceRange" field.
func SourceRangeContainsFold ¶
SourceRangeContainsFold applies the ContainsFold predicate on the "sourceRange" field.
func SourceRangeEQ ¶
SourceRangeEQ applies the EQ predicate on the "sourceRange" field.
func SourceRangeEqualFold ¶
SourceRangeEqualFold applies the EqualFold predicate on the "sourceRange" field.
func SourceRangeGT ¶
SourceRangeGT applies the GT predicate on the "sourceRange" field.
func SourceRangeGTE ¶
SourceRangeGTE applies the GTE predicate on the "sourceRange" field.
func SourceRangeHasPrefix ¶
SourceRangeHasPrefix applies the HasPrefix predicate on the "sourceRange" field.
func SourceRangeHasSuffix ¶
SourceRangeHasSuffix applies the HasSuffix predicate on the "sourceRange" field.
func SourceRangeIn ¶
SourceRangeIn applies the In predicate on the "sourceRange" field.
func SourceRangeIsNil ¶
SourceRangeIsNil applies the IsNil predicate on the "sourceRange" field.
func SourceRangeLT ¶
SourceRangeLT applies the LT predicate on the "sourceRange" field.
func SourceRangeLTE ¶
SourceRangeLTE applies the LTE predicate on the "sourceRange" field.
func SourceRangeNEQ ¶
SourceRangeNEQ applies the NEQ predicate on the "sourceRange" field.
func SourceRangeNotIn ¶
SourceRangeNotIn applies the NotIn predicate on the "sourceRange" field.
func SourceRangeNotNil ¶
SourceRangeNotNil applies the NotNil predicate on the "sourceRange" field.
func SourceScope ¶
SourceScope applies equality check predicate on the "sourceScope" field. It's identical to SourceScopeEQ.
func SourceScopeContains ¶
SourceScopeContains applies the Contains predicate on the "sourceScope" field.
func SourceScopeContainsFold ¶
SourceScopeContainsFold applies the ContainsFold predicate on the "sourceScope" field.
func SourceScopeEQ ¶
SourceScopeEQ applies the EQ predicate on the "sourceScope" field.
func SourceScopeEqualFold ¶
SourceScopeEqualFold applies the EqualFold predicate on the "sourceScope" field.
func SourceScopeGT ¶
SourceScopeGT applies the GT predicate on the "sourceScope" field.
func SourceScopeGTE ¶
SourceScopeGTE applies the GTE predicate on the "sourceScope" field.
func SourceScopeHasPrefix ¶
SourceScopeHasPrefix applies the HasPrefix predicate on the "sourceScope" field.
func SourceScopeHasSuffix ¶
SourceScopeHasSuffix applies the HasSuffix predicate on the "sourceScope" field.
func SourceScopeIn ¶
SourceScopeIn applies the In predicate on the "sourceScope" field.
func SourceScopeIsNil ¶
SourceScopeIsNil applies the IsNil predicate on the "sourceScope" field.
func SourceScopeLT ¶
SourceScopeLT applies the LT predicate on the "sourceScope" field.
func SourceScopeLTE ¶
SourceScopeLTE applies the LTE predicate on the "sourceScope" field.
func SourceScopeNEQ ¶
SourceScopeNEQ applies the NEQ predicate on the "sourceScope" field.
func SourceScopeNotIn ¶
SourceScopeNotIn applies the NotIn predicate on the "sourceScope" field.
func SourceScopeNotNil ¶
SourceScopeNotNil applies the NotNil predicate on the "sourceScope" field.
func SourceValue ¶
SourceValue applies equality check predicate on the "sourceValue" field. It's identical to SourceValueEQ.
func SourceValueContains ¶
SourceValueContains applies the Contains predicate on the "sourceValue" field.
func SourceValueContainsFold ¶
SourceValueContainsFold applies the ContainsFold predicate on the "sourceValue" field.
func SourceValueEQ ¶
SourceValueEQ applies the EQ predicate on the "sourceValue" field.
func SourceValueEqualFold ¶
SourceValueEqualFold applies the EqualFold predicate on the "sourceValue" field.
func SourceValueGT ¶
SourceValueGT applies the GT predicate on the "sourceValue" field.
func SourceValueGTE ¶
SourceValueGTE applies the GTE predicate on the "sourceValue" field.
func SourceValueHasPrefix ¶
SourceValueHasPrefix applies the HasPrefix predicate on the "sourceValue" field.
func SourceValueHasSuffix ¶
SourceValueHasSuffix applies the HasSuffix predicate on the "sourceValue" field.
func SourceValueIn ¶
SourceValueIn applies the In predicate on the "sourceValue" field.
func SourceValueIsNil ¶
SourceValueIsNil applies the IsNil predicate on the "sourceValue" field.
func SourceValueLT ¶
SourceValueLT applies the LT predicate on the "sourceValue" field.
func SourceValueLTE ¶
SourceValueLTE applies the LTE predicate on the "sourceValue" field.
func SourceValueNEQ ¶
SourceValueNEQ applies the NEQ predicate on the "sourceValue" field.
func SourceValueNotIn ¶
SourceValueNotIn applies the NotIn predicate on the "sourceValue" field.
func SourceValueNotNil ¶
SourceValueNotNil applies the NotNil predicate on the "sourceValue" field.
func StartedAt ¶
StartedAt applies equality check predicate on the "startedAt" field. It's identical to StartedAtEQ.
func StartedAtEQ ¶
StartedAtEQ applies the EQ predicate on the "startedAt" field.
func StartedAtGT ¶
StartedAtGT applies the GT predicate on the "startedAt" field.
func StartedAtGTE ¶
StartedAtGTE applies the GTE predicate on the "startedAt" field.
func StartedAtIn ¶
StartedAtIn applies the In predicate on the "startedAt" field.
func StartedAtIsNil ¶
StartedAtIsNil applies the IsNil predicate on the "startedAt" field.
func StartedAtLT ¶
StartedAtLT applies the LT predicate on the "startedAt" field.
func StartedAtLTE ¶
StartedAtLTE applies the LTE predicate on the "startedAt" field.
func StartedAtNEQ ¶
StartedAtNEQ applies the NEQ predicate on the "startedAt" field.
func StartedAtNotIn ¶
StartedAtNotIn applies the NotIn predicate on the "startedAt" field.
func StartedAtNotNil ¶
StartedAtNotNil applies the NotNil predicate on the "startedAt" field.
func StoppedAt ¶
StoppedAt applies equality check predicate on the "stoppedAt" field. It's identical to StoppedAtEQ.
func StoppedAtEQ ¶
StoppedAtEQ applies the EQ predicate on the "stoppedAt" field.
func StoppedAtGT ¶
StoppedAtGT applies the GT predicate on the "stoppedAt" field.
func StoppedAtGTE ¶
StoppedAtGTE applies the GTE predicate on the "stoppedAt" field.
func StoppedAtIn ¶
StoppedAtIn applies the In predicate on the "stoppedAt" field.
func StoppedAtIsNil ¶
StoppedAtIsNil applies the IsNil predicate on the "stoppedAt" field.
func StoppedAtLT ¶
StoppedAtLT applies the LT predicate on the "stoppedAt" field.
func StoppedAtLTE ¶
StoppedAtLTE applies the LTE predicate on the "stoppedAt" field.
func StoppedAtNEQ ¶
StoppedAtNEQ applies the NEQ predicate on the "stoppedAt" field.
func StoppedAtNotIn ¶
StoppedAtNotIn applies the NotIn predicate on the "stoppedAt" field.
func StoppedAtNotNil ¶
StoppedAtNotNil applies the NotNil predicate on the "stoppedAt" field.
func UUID ¶ added in v1.5.0
UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.
func UUIDContains ¶ added in v1.5.0
UUIDContains applies the Contains predicate on the "uuid" field.
func UUIDContainsFold ¶ added in v1.5.0
UUIDContainsFold applies the ContainsFold predicate on the "uuid" field.
func UUIDEqualFold ¶ added in v1.5.0
UUIDEqualFold applies the EqualFold predicate on the "uuid" field.
func UUIDHasPrefix ¶ added in v1.5.0
UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field.
func UUIDHasSuffix ¶ added in v1.5.0
UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field.
func UUIDNotNil ¶ added in v1.5.0
UUIDNotNil applies the NotNil predicate on the "uuid" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v1.6.1
OrderOption defines the ordering options for the Alert queries.
func ByBucketId ¶ added in v1.6.1
func ByBucketId(opts ...sql.OrderTermOption) OrderOption
ByBucketId orders the results by the bucketId field.
func ByCapacity ¶ added in v1.6.1
func ByCapacity(opts ...sql.OrderTermOption) OrderOption
ByCapacity orders the results by the capacity field.
func ByCreatedAt ¶ added in v1.6.1
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDecisions ¶ added in v1.6.1
func ByDecisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDecisions orders the results by decisions terms.
func ByDecisionsCount ¶ added in v1.6.1
func ByDecisionsCount(opts ...sql.OrderTermOption) OrderOption
ByDecisionsCount orders the results by decisions count.
func ByEvents ¶ added in v1.6.1
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶ added in v1.6.1
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByEventsCountField ¶ added in v1.6.1
func ByEventsCountField(opts ...sql.OrderTermOption) OrderOption
ByEventsCountField orders the results by the eventsCount field.
func ByID ¶ added in v1.6.1
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLeakSpeed ¶ added in v1.6.1
func ByLeakSpeed(opts ...sql.OrderTermOption) OrderOption
ByLeakSpeed orders the results by the leakSpeed field.
func ByMessage ¶ added in v1.6.1
func ByMessage(opts ...sql.OrderTermOption) OrderOption
ByMessage orders the results by the message field.
func ByMetas ¶ added in v1.6.1
func ByMetas(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMetas orders the results by metas terms.
func ByMetasCount ¶ added in v1.6.1
func ByMetasCount(opts ...sql.OrderTermOption) OrderOption
ByMetasCount orders the results by metas count.
func ByOwnerField ¶ added in v1.6.1
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByScenario ¶ added in v1.6.1
func ByScenario(opts ...sql.OrderTermOption) OrderOption
ByScenario orders the results by the scenario field.
func ByScenarioHash ¶ added in v1.6.1
func ByScenarioHash(opts ...sql.OrderTermOption) OrderOption
ByScenarioHash orders the results by the scenarioHash field.
func ByScenarioVersion ¶ added in v1.6.1
func ByScenarioVersion(opts ...sql.OrderTermOption) OrderOption
ByScenarioVersion orders the results by the scenarioVersion field.
func BySimulated ¶ added in v1.6.1
func BySimulated(opts ...sql.OrderTermOption) OrderOption
BySimulated orders the results by the simulated field.
func BySourceAsName ¶ added in v1.6.1
func BySourceAsName(opts ...sql.OrderTermOption) OrderOption
BySourceAsName orders the results by the sourceAsName field.
func BySourceAsNumber ¶ added in v1.6.1
func BySourceAsNumber(opts ...sql.OrderTermOption) OrderOption
BySourceAsNumber orders the results by the sourceAsNumber field.
func BySourceCountry ¶ added in v1.6.1
func BySourceCountry(opts ...sql.OrderTermOption) OrderOption
BySourceCountry orders the results by the sourceCountry field.
func BySourceIp ¶ added in v1.6.1
func BySourceIp(opts ...sql.OrderTermOption) OrderOption
BySourceIp orders the results by the sourceIp field.
func BySourceLatitude ¶ added in v1.6.1
func BySourceLatitude(opts ...sql.OrderTermOption) OrderOption
BySourceLatitude orders the results by the sourceLatitude field.
func BySourceLongitude ¶ added in v1.6.1
func BySourceLongitude(opts ...sql.OrderTermOption) OrderOption
BySourceLongitude orders the results by the sourceLongitude field.
func BySourceRange ¶ added in v1.6.1
func BySourceRange(opts ...sql.OrderTermOption) OrderOption
BySourceRange orders the results by the sourceRange field.
func BySourceScope ¶ added in v1.6.1
func BySourceScope(opts ...sql.OrderTermOption) OrderOption
BySourceScope orders the results by the sourceScope field.
func BySourceValue ¶ added in v1.6.1
func BySourceValue(opts ...sql.OrderTermOption) OrderOption
BySourceValue orders the results by the sourceValue field.
func ByStartedAt ¶ added in v1.6.1
func ByStartedAt(opts ...sql.OrderTermOption) OrderOption
ByStartedAt orders the results by the startedAt field.
func ByStoppedAt ¶ added in v1.6.1
func ByStoppedAt(opts ...sql.OrderTermOption) OrderOption
ByStoppedAt orders the results by the stoppedAt field.
func ByUUID ¶ added in v1.6.1
func ByUUID(opts ...sql.OrderTermOption) OrderOption
ByUUID orders the results by the uuid field.
func ByUpdatedAt ¶ added in v1.6.1
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.