Documentation ¶
Index ¶
- type RouteMgr
- func (rm *RouteMgr) AddAlert(alertId string, r *http.Request) (bool, error)
- func (rm *RouteMgr) AddAlertConfig(alertConfig *config.AlertConfig)
- func (rm *RouteMgr) DeleteAlert(alertId string) (bool, error)
- func (rm *RouteMgr) GetAlerts() map[string][]*ScheduledAlert
- func (rm *RouteMgr) Route(event *routers.Event) error
- type ScheduleDisabler
- type ScheduleEnabler
- type ScheduledAlert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteMgr ¶
type RouteMgr struct {
// contains filtered or unexported fields
}
RouteMgr
func NewRouteMgr ¶
func (*RouteMgr) AddAlertConfig ¶
func (rm *RouteMgr) AddAlertConfig(alertConfig *config.AlertConfig)
Add a alert configuration and create its schedule
func (*RouteMgr) DeleteAlert ¶
Private function to delete an alert
func (*RouteMgr) GetAlerts ¶
func (rm *RouteMgr) GetAlerts() map[string][]*ScheduledAlert
type ScheduleDisabler ¶
type ScheduleDisabler struct {
// contains filtered or unexported fields
}
Used to disable a schedule via the cron interface
func (*ScheduleDisabler) Run ¶
func (s *ScheduleDisabler) Run()
Schedule enabler. Implements the cron interface Run function to flip the enabled flag to false
type ScheduleEnabler ¶
type ScheduleEnabler struct {
// contains filtered or unexported fields
}
Used to enable a schedule via the cron interface
func (*ScheduleEnabler) Run ¶
func (s *ScheduleEnabler) Run()
Schedule enabler. Implements the cron interface Run function to flip the enabled flag to true
type ScheduledAlert ¶
type ScheduledAlert struct { Config config.RouterParms // contains filtered or unexported fields }
ScheduleAlert object used for cron schedules
Click to show internal directories.
Click to hide internal directories.