Documentation ¶
Index ¶
- type ComponentCountersCalcData
- type EntityCounters
- func (s *EntityCounters) Copy() EntityCounters
- func (s *EntityCounters) DecrementAlarmCounters(acked, isActive bool)
- func (s *EntityCounters) DecrementPbhCounters(typeID string)
- func (s *EntityCounters) DecrementState(state int, withInherited bool)
- func (s *EntityCounters) GetWorstState() int
- func (s *EntityCounters) IncrementAlarmCounters(acked, isActive bool)
- func (s *EntityCounters) IncrementPbhCounters(typeID string)
- func (s *EntityCounters) IncrementState(state int, withInherited bool)
- func (s *EntityCounters) Reset()
- func (s *EntityCounters) Sub(o EntityCounters) map[string]int
- type EntityServiceCountersCalcData
- type EventsSender
- type ServicesInfo
- type StateCounters
- type StateSettingsInfo
- type UpdatedServicesInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentCountersCalcData ¶
type ComponentCountersCalcData struct { Info StateSettingsInfo Counters EntityCounters PrevState int CurState int PrevActive bool CurActive bool AlarmExists bool }
type EntityCounters ¶
type EntityCounters struct { ID string `bson:"_id"` All int `bson:"all"` Active int `bson:"active"` State StateCounters `bson:"state"` InheritedState StateCounters `bson:"inherited_state"` Acknowledged int `bson:"acked"` AcknowledgedUnderPbh int `bson:"acked_under_pbh"` NotAcknowledged int `bson:"unacked"` PbehaviorCounters map[string]int `bson:"pbehavior,omitempty"` UnderPbehavior int `bson:"under_pbh"` Depends int `bson:"depends"` OutputTemplate string `bson:"output_template,omitempty"` Output string `bson:"output,omitempty"` Rule *statesetting.StateSetting `bson:"rule"` }
func (*EntityCounters) Copy ¶
func (s *EntityCounters) Copy() EntityCounters
func (*EntityCounters) DecrementAlarmCounters ¶
func (s *EntityCounters) DecrementAlarmCounters(acked, isActive bool)
func (*EntityCounters) DecrementPbhCounters ¶
func (s *EntityCounters) DecrementPbhCounters(typeID string)
func (*EntityCounters) DecrementState ¶
func (s *EntityCounters) DecrementState(state int, withInherited bool)
func (*EntityCounters) GetWorstState ¶
func (s *EntityCounters) GetWorstState() int
func (*EntityCounters) IncrementAlarmCounters ¶
func (s *EntityCounters) IncrementAlarmCounters(acked, isActive bool)
func (*EntityCounters) IncrementPbhCounters ¶
func (s *EntityCounters) IncrementPbhCounters(typeID string)
func (*EntityCounters) IncrementState ¶
func (s *EntityCounters) IncrementState(state int, withInherited bool)
func (*EntityCounters) Reset ¶
func (s *EntityCounters) Reset()
func (*EntityCounters) Sub ¶
func (s *EntityCounters) Sub(o EntityCounters) map[string]int
type EntityServiceCountersCalcData ¶
type EntityServiceCountersCalcData struct { ServicesToAdd map[string]bool ServicesToRemove map[string]bool Info ServicesInfo Counters EntityCounters PrevPbhTypeID string CurPbhTypeID string PrevState int CurState int PrevActive bool CurActive bool IsAcked bool Inherited bool AlarmExists bool EntityEnabled bool }
type EventsSender ¶
type EventsSender interface { UpdateComponentState(ctx context.Context, id, connectorID string, state int) error UpdateServiceState(ctx context.Context, serviceID string, serviceInfo UpdatedServicesInfo) error RecomputeService(ctx context.Context, serviceID string) error RecomputeComponent(ctx context.Context, componentID, connectorID string) error }
func NewEventSender ¶
type ServicesInfo ¶
type StateCounters ¶
type StateSettingsInfo ¶
type UpdatedServicesInfo ¶
Click to show internal directories.
Click to hide internal directories.