Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerEventDAO ¶
type AlertManagerEventDAO interface { GetMonitorAlertEventById(ctx context.Context, id int) (*model.MonitorAlertEvent, error) SearchMonitorAlertEventByName(ctx context.Context, name string) ([]*model.MonitorAlertEvent, error) GetMonitorAlertEventList(ctx context.Context) ([]*model.MonitorAlertEvent, error) EventAlertClaim(ctx context.Context, event *model.MonitorAlertEvent) error GetAlertEventByID(ctx context.Context, id int) (*model.MonitorAlertEvent, error) UpdateAlertEvent(ctx context.Context, alertEvent *model.MonitorAlertEvent) error SendMessageToGroup(ctx context.Context, url string, message string) error }
func NewAlertManagerEventDAO ¶
type AlertManagerOnDutyDAO ¶
type AlertManagerOnDutyDAO interface { GetAllMonitorOnDutyGroup(ctx context.Context) ([]*model.MonitorOnDutyGroup, error) CreateMonitorOnDutyGroup(ctx context.Context, monitorOnDutyGroup *model.MonitorOnDutyGroup) error GetMonitorOnDutyGroupById(ctx context.Context, id int) (*model.MonitorOnDutyGroup, error) UpdateMonitorOnDutyGroup(ctx context.Context, monitorOnDutyGroup *model.MonitorOnDutyGroup) error DeleteMonitorOnDutyGroup(ctx context.Context, id int) error SearchMonitorOnDutyGroupByName(ctx context.Context, name string) ([]*model.MonitorOnDutyGroup, error) CreateMonitorOnDutyGroupChange(ctx context.Context, monitorOnDutyGroupChange *model.MonitorOnDutyChange) error GetMonitorOnDutyChangesByGroupAndTimeRange(ctx context.Context, groupID int, startTime, endTime string) ([]*model.MonitorOnDutyChange, error) CheckMonitorOnDutyGroupExists(ctx context.Context, onDutyGroup *model.MonitorOnDutyGroup) (bool, error) GetMonitorOnDutyHistoryByGroupIdAndTimeRange(ctx context.Context, groupID int, startTime, endTime string) ([]*model.MonitorOnDutyHistory, error) CreateMonitorOnDutyHistory(ctx context.Context, monitorOnDutyHistory *model.MonitorOnDutyHistory) error GetMonitorOnDutyHistoryByGroupIdAndDay(ctx context.Context, groupID int, day string) (*model.MonitorOnDutyHistory, error) ExistsMonitorOnDutyHistory(ctx context.Context, groupID int, day string) (bool, error) }
type AlertManagerPoolDAO ¶
type AlertManagerPoolDAO interface { GetAllAlertManagerPools(ctx context.Context) ([]*model.MonitorAlertManagerPool, error) CreateMonitorAlertManagerPool(ctx context.Context, monitorAlertManagerPool *model.MonitorAlertManagerPool) error UpdateMonitorAlertManagerPool(ctx context.Context, monitorAlertManagerPool *model.MonitorAlertManagerPool) error DeleteMonitorAlertManagerPool(ctx context.Context, id int) error SearchMonitorAlertManagerPoolByName(ctx context.Context, name string) ([]*model.MonitorAlertManagerPool, error) GetAlertPoolByID(ctx context.Context, poolID int) (*model.MonitorAlertManagerPool, error) CheckMonitorAlertManagerPoolExists(ctx context.Context, alertManagerPool *model.MonitorAlertManagerPool) (bool, error) GetMonitorAlertManagerPoolById(ctx context.Context, id int) (*model.MonitorAlertManagerPool, error) }
func NewAlertManagerPoolDAO ¶
type AlertManagerRecordDAO ¶
type AlertManagerRecordDAO interface { GetMonitorRecordRuleByPoolId(ctx context.Context, poolId int) ([]*model.MonitorRecordRule, error) SearchMonitorRecordRuleByName(ctx context.Context, name string) ([]*model.MonitorRecordRule, error) GetMonitorRecordRuleList(ctx context.Context) ([]*model.MonitorRecordRule, error) CreateMonitorRecordRule(ctx context.Context, recordRule *model.MonitorRecordRule) error GetMonitorRecordRuleById(ctx context.Context, id int) (*model.MonitorRecordRule, error) UpdateMonitorRecordRule(ctx context.Context, recordRule *model.MonitorRecordRule) error DeleteMonitorRecordRule(ctx context.Context, ruleID int) error EnableSwitchMonitorRecordRule(ctx context.Context, ruleID int) error CheckMonitorRecordRuleExists(ctx context.Context, recordRule *model.MonitorRecordRule) (bool, error) CheckMonitorRecordRuleNameExists(ctx context.Context, recordRule *model.MonitorRecordRule) (bool, error) }
type AlertManagerRuleDAO ¶
type AlertManagerRuleDAO interface { GetMonitorAlertRuleByPoolId(ctx context.Context, poolId int) ([]*model.MonitorAlertRule, error) SearchMonitorAlertRuleByName(ctx context.Context, name string) ([]*model.MonitorAlertRule, error) GetMonitorAlertRuleList(ctx context.Context) ([]*model.MonitorAlertRule, error) CreateMonitorAlertRule(ctx context.Context, monitorAlertRule *model.MonitorAlertRule) error GetMonitorAlertRuleById(ctx context.Context, id int) (*model.MonitorAlertRule, error) UpdateMonitorAlertRule(ctx context.Context, monitorAlertRule *model.MonitorAlertRule) error EnableSwitchMonitorAlertRule(ctx context.Context, ruleID int) error BatchEnableSwitchMonitorAlertRule(ctx context.Context, ruleIDs []int) error DeleteMonitorAlertRule(ctx context.Context, ruleID int) error GetAssociatedResourcesBySendGroupId(ctx context.Context, sendGroupId int) ([]*model.MonitorAlertRule, error) CheckMonitorAlertRuleExists(ctx context.Context, alertRule *model.MonitorAlertRule) (bool, error) CheckMonitorAlertRuleNameExists(ctx context.Context, alertRule *model.MonitorAlertRule) (bool, error) }
func NewAlertManagerRuleDAO ¶
type AlertManagerSendDAO ¶
type AlertManagerSendDAO interface { GetMonitorSendGroupByPoolId(ctx context.Context, poolId int) ([]*model.MonitorSendGroup, error) GetMonitorSendGroupByOnDutyGroupId(ctx context.Context, onDutyGroupID int) ([]*model.MonitorSendGroup, error) SearchMonitorSendGroupByName(ctx context.Context, name string) ([]*model.MonitorSendGroup, error) GetMonitorSendGroupList(ctx context.Context) ([]*model.MonitorSendGroup, error) GetMonitorSendGroupById(ctx context.Context, id int) (*model.MonitorSendGroup, error) CreateMonitorSendGroup(ctx context.Context, monitorSendGroup *model.MonitorSendGroup) error UpdateMonitorSendGroup(ctx context.Context, monitorSendGroup *model.MonitorSendGroup) error DeleteMonitorSendGroup(ctx context.Context, id int) error CheckMonitorSendGroupExists(ctx context.Context, sendGroup *model.MonitorSendGroup) (bool, error) CheckMonitorSendGroupNameExists(ctx context.Context, sendGroup *model.MonitorSendGroup) (bool, error) }
func NewAlertManagerSendDAO ¶
Click to show internal directories.
Click to hide internal directories.