Versions in this module Expand all Collapse all v0 v0.26.13 Jan 29, 2026 v0.26.12 Jan 28, 2026 v0.26.11 Jan 26, 2026 v0.26.10 Jan 25, 2026 v0.26.9 Jan 25, 2026 v0.26.8 Jan 23, 2026 v0.26.7 Jan 21, 2026 v0.26.6 Jan 14, 2026 v0.26.5 Jan 13, 2026 v0.26.4 Jan 12, 2026 v0.26.3 Jan 11, 2026 v0.26.2 Jan 10, 2026 v0.26.1 Jan 10, 2026 Changes in this version + func DropDB() error + func HasEnabledEventConfigs() (bool, error) + func InitDB() error + func UpgradeDB(fromVersion string, toVersion string) error + type EventForwardSetting struct + CreatedAt time.Time + EventWatcherBufferSize int + EventWorkerBatchSize int + EventWorkerMaxRetries int + EventWorkerProcessInterval int + ID uint + UpdatedAt time.Time + func DefaultEventForwardSetting() *EventForwardSetting + func GetOrCreateEventForwardSetting() (*EventForwardSetting, error) + func UpdateEventForwardSetting(in *EventForwardSetting) (*EventForwardSetting, error) + func (EventForwardSetting) TableName() string + type K8sEvent struct + Attempts int + Cluster string + CreatedAt time.Time + EvtKey string + ID int64 + Level string + Message string + Name string + Namespace string + Processed bool + Reason string + Timestamp time.Time + Type string + UpdatedAt time.Time + func (e *K8sEvent) Delete(params *dao.Params, ids string, queryFuncs ...func(*gorm.DB) *gorm.DB) error + func (e *K8sEvent) GetByEvtKey(evtKey string) (*K8sEvent, error) + func (e *K8sEvent) GetOne(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) (*K8sEvent, error) + func (e *K8sEvent) IncrementAttemptsByID(id int64) error + func (e *K8sEvent) IsNormal() bool + func (e *K8sEvent) IsWarning() bool + func (e *K8sEvent) List(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) ([]*K8sEvent, int64, error) + func (e *K8sEvent) ListUnprocessed(limit int) ([]*K8sEvent, error) + func (e *K8sEvent) MarkProcessedByID(id int64, processed bool) error + func (e *K8sEvent) Save(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) error + func (e *K8sEvent) SaveEvent() error + func (e *K8sEvent) ShouldProcess() bool + func (e *K8sEvent) TableName() string + type K8sEventConfig struct + AIEnabled bool + AIPromptTemplate string + Clusters string + CreatedAt time.Time + Description string + Enabled bool + ID uint + Name string + RuleNames string + RuleNamespaces string + RuleReasons string + RuleReverse bool + UpdatedAt time.Time + WebhookNames string + Webhooks string + func (c *K8sEventConfig) Delete(params *dao.Params, ids string, queryFuncs ...func(*gorm.DB) *gorm.DB) error + func (c *K8sEventConfig) GetOne(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) (*K8sEventConfig, error) + func (c *K8sEventConfig) List(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) ([]*K8sEventConfig, int64, error) + func (c *K8sEventConfig) Save(params *dao.Params, queryFuncs ...func(*gorm.DB) *gorm.DB) error