metrics2 -> metrics (#270)

This commit is contained in:
Michael Quigley
2023-03-15 16:14:06 -04:00
committed by Kenneth Bingham
parent e1c79e687e
commit e824c87d08
23 changed files with 131 additions and 789 deletions

View File

@ -35,11 +35,17 @@ func (u Usage) String() string {
return out
}
type Source interface {
Start(chan map[string]interface{}) (chan struct{}, error)
type UsageSink interface {
Handle(u *Usage) error
}
type ZitiEventJson string
type ZitiEventJsonSource interface {
Start(chan ZitiEventJson) (join chan struct{}, err error)
Stop()
}
type Ingester interface {
Ingest(msg map[string]interface{}) error
type ZitiEventJsonSink interface {
Handle(event ZitiEventJson) error
}