add activity events for domains

This commit is contained in:
pascal
2026-03-09 14:18:05 +01:00
parent 30c02ab78c
commit 1b4c831976
4 changed files with 42 additions and 7 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,
}
}