Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + func ToTime(timestampStr string) (time.Time, error) + type AlertNotifyIndex struct + AlertId int64 + Attributes string + Channel string + CreatedAt time.Time + ID int64 + NotifyID int64 + NotifyName string + OrgID int64 + ScopeID string + ScopeType string + SendTime time.Time + Status string + func (AlertNotifyIndex) TableName() string + type AlertNotifyIndexDB struct + func (db *AlertNotifyIndexDB) CreateAlertNotifyIndex(alertNotifyIndex *AlertNotifyIndex) (int64, error) + func (db *AlertNotifyIndexDB) GetAlertNotifyIndex(id int64) (*AlertNotifyIndex, error) + func (db *AlertNotifyIndexDB) QueryAlertNotifyHistories(queryRequest *model.QueryAlertNotifyIndexRequest) ([]AlertNotifyIndex, int64, error) + type DB struct + AlertNotifyDB alertdb.AlertNotifyDB + AlertNotifyIndexDB AlertNotifyIndexDB + NotifyHistoryDB NotifyHistoryDB + func New(db *gorm.DB) *DB + func (db *DB) Begin() *DB + type NotifyHistory struct + Channel string + ClusterName string + ErrorMsg string + Label string + NotifyItemDisplayName string + NotifyName string + OrgID int64 + SourceData string + SourceID string + SourceType string + Status string + TargetData string + func (NotifyHistory) TableName() string + func (notifyHistory *NotifyHistory) ToApiData() (*pb.NotifyHistory, error) + type NotifyHistoryDB struct + func (db *NotifyHistoryDB) CreateNotifyHistory(request *NotifyHistory) (*NotifyHistory, error) + func (db *NotifyHistoryDB) FilterStatus(request *model.FilterStatusRequest) ([]*model.FilterStatusResult, error) + func (db *NotifyHistoryDB) GetAlertNotifyHistory(id int64) (*NotifyHistory, error) + func (db *NotifyHistoryDB) NotifyHistoryType(key string, orgId int, scopeId, scopeType string, startTime, endTime int64) ([]*model.NotifyValue, error) + func (db *NotifyHistoryDB) QueryNotifyHistories(request *model.QueryNotifyHistoriesRequest) ([]NotifyHistory, int64, error) + func (db *NotifyHistoryDB) QueryNotifyValue(key string, orgId int, scopeId, scopeType string, ...) ([]*model.NotifyValue, error)