service

package
v0.0.0-...-8cc84bd Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaAlarmService

type MetaAlarmService interface {
	CreateMetaAlarm(event *types.Event, children []types.Alarm, rule metaalarm.Rule) (types.Event, error)
	AddChildToMetaAlarm(metaAlarm types.Alarm, childAlarm *types.Alarm) error
	AddMultipleChildsToMetaAlarm(metaAlarm types.Alarm, children []types.Alarm) error
}

MetaAlarmService ...

func NewMetaAlarmService

func NewMetaAlarmService(alarmAdapter alarm.Adapter, entityAdapter entity.Adapter, logger zerolog.Logger) MetaAlarmService

NewMetaAlarmService instanciates meta-alarm service; receives entityAdapter as adapter to Entity collection and alarmAdapter as adapter to db Alarm collection

Jump to

Keyboard shortcuts

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