@Override
  public Object metric(@NotNull String key) {
    if (key.equals("events")) return myEventCount;
    throw new IllegalArgumentException();
  }
@Override
  public Object metric(@NotNull String key)