code: func (f EventFields) GetInt(key string) int {
  	val, found := f[key]
  	if !found {
  		return 0
  	}
  	v, ok := val.(int)
  	if !ok {
  		f, ok := val.(float64)
  		if ok {
  			v = int(f)
  		}
  	}
  	return v
  }
docs: // GetString returns an int representation of a logged field