[management] add activity events for domains (#5548)

* add activity events for domains

* fix test

* update activity codes

* update activity codes
This commit is contained in:
Pascal Fischer
2026-03-09 19:04:04 +01:00
committed by GitHub
parent f884299823
commit 5585adce18
5 changed files with 43 additions and 8 deletions

View File

@@ -15,3 +15,12 @@ type Domain struct {
Type Type `gorm:"-"`
Validated bool
}
// EventMeta returns activity event metadata for a domain
func (d *Domain) EventMeta() map[string]any {
return map[string]any{
"domain": d.Domain,
"target_cluster": d.TargetCluster,
"validated": d.Validated,
}
}