grain/config/types/eventPurging.go

16 lines
509 B
Go
Raw Normal View History

2024-09-22 19:34:32 +00:00
package config
type EventPurgeConfig struct {
Enabled bool `yaml:"enabled"`
KeepDurationDays int `yaml:"keep_duration_days"`
PurgeIntervalHours int `yaml:"purge_interval_hours"`
PurgeByCategory map[string]bool `yaml:"purge_by_category"`
PurgeByKind []KindPurgeRule `yaml:"purge_by_kind"`
ExcludeWhitelisted bool `yaml:"exclude_whitelisted"`
}
type KindPurgeRule struct {
Kind int `yaml:"kind"`
Enabled bool `yaml:"enabled"`
}