code: func (e *eventLogger) updateState(event *v1.Event) {
  	key := getEventKey(event)
  	e.Lock()
  	defer e.Unlock()
  	// record our new observation
  	e.cache.Add(
  		key,
  		eventLog{
  			count:           uint(event.Count),
  			firstTimestamp:  event.FirstTimestamp,
  			name:            event.Name,
  			resourceVersion: event.ResourceVersion,
  		},
  	)
  }
docs: // updateState updates its internal tracking information based on latest server state