Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeExternal = iota TypeInternal )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmTag ¶
type AlarmTag struct { ID string `bson:"_id" json:"_id"` Type int64 `bson:"type" json:"type"` Value string `bson:"value" json:"value"` Label string `bson:"label" json:"label"` Color string `bson:"color" json:"color"` Author string `bson:"author" json:"author"` Created datetime.CpsTime `bson:"created" json:"created"` Updated datetime.CpsTime `bson:"updated" json:"updated"` LastEventDate datetime.CpsTime `bson:"last_event_date,omitempty" json:"last_event_date,omitempty"` savedpattern.EntityPatternFields `bson:",inline"` savedpattern.AlarmPatternFields `bson:",inline"` }
type ExternalUpdater ¶
func NewExternalUpdater ¶
func NewExternalUpdater(client mongo.DbClient) ExternalUpdater
type InternalTagAlarmMatcher ¶
type InternalTagAlarmMatcher interface { Load(ctx context.Context) error Match(entity types.Entity, alarm types.Alarm) []string }
func NewInternalTagAlarmMatcher ¶
func NewInternalTagAlarmMatcher(client mongo.DbClient) InternalTagAlarmMatcher
Click to show internal directories.
Click to hide internal directories.