Add client time to events

This commit is contained in:
Daniel Smith
2014-10-21 22:28:12 -07:00
parent 7d5ed53958
commit ad1212b9af
6 changed files with 22 additions and 3 deletions

View File

@@ -694,6 +694,9 @@ type Event struct {
// Optional. The component reporting this event. Should be a short machine understandable string.
// TODO: provide exact specification for format.
Source string `json:"source,omitempty" yaml:"source,omitempty"`
// The time at which the client recorded the event. (Time of server receipt is in TypeMeta.)
Timestamp util.Time `json:"timestamp,omitempty" yaml:"timestamp,omitempty"`
}
// EventList is a list of events.