Add initial implementation of stats

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2015-12-14 14:43:00 -08:00
parent ce387dc505
commit 4bc322397f
9 changed files with 518 additions and 97 deletions

View file

@ -21,6 +21,8 @@ const (
UpdateContainerEventType EventType = "updateContainer"
CreateCheckpointEventType EventType = "createCheckpoint"
DeleteCheckpointEventType EventType = "deleteCheckpoint"
StatsEventType EventType = "events"
UnsubscribeStatsEventType EventType = "unsubscribeEvents"
)
func NewEvent(t EventType) *Event {
@ -47,6 +49,7 @@ type Event struct {
Containers []runtime.Container
Checkpoint *runtime.Checkpoint
Err chan error
Stats chan interface{}
}
type Handler interface {