Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookDao ¶
type WebhookDao interface { GetOnDutyGroupById(ctx context.Context, id int) (*model.MonitorOnDutyGroup, error) GetRuleById(ctx context.Context, id int) (*model.MonitorAlertRule, error) GetMonitorAlertRuleList(ctx context.Context) ([]*model.MonitorAlertRule, error) GetSendGroupById(ctx context.Context, id int) (*model.MonitorSendGroup, error) GetUserById(ctx context.Context, id int) (*model.User, error) GetUserList(ctx context.Context) ([]*model.User, error) GetMonitorOnDutyGroupList(ctx context.Context) ([]*model.MonitorOnDutyGroup, error) GetMonitorSendGroupList(ctx context.Context) ([]*model.MonitorSendGroup, error) GetMonitorAlertEventByFingerprintId(ctx context.Context, fingerprintId string) (*model.MonitorAlertEvent, error) CreateOrUpdateEvent(ctx context.Context, event *model.MonitorAlertEvent) error UpdateMonitorAlertEvent(ctx context.Context, event *model.MonitorAlertEvent) error FillTodayOnDutyUser(ctx context.Context, onDutyGroup *model.MonitorOnDutyGroup) (*model.MonitorOnDutyGroup, error) }
func NewWebhookDao ¶
func NewWebhookDao(l *zap.Logger, db *gorm.DB) WebhookDao
Click to show internal directories.
Click to hide internal directories.