Files
threshold/internal/observability/event/event_sys.go
T
Johan Brandhorst-Satzkorn f57454b6b9 Rewrite interface{} to any (#2535)
* chore: Rewrite interface{} to any

* Add ignore revs
2022-10-25 19:29:38 -04:00

15 lines
415 B
Go

package event
// sysVersion defines the version of sys events
const sysVersion = "v0.1"
type sysEvent struct {
Id Id `json:"-"`
Version string `json:"version"`
Op Op `json:"op,omitempty"`
Data map[string]any `json:"data"`
}
// EventType is required for all event types by the eventlogger broker
func (e *sysEvent) EventType() string { return string(SystemType) }