@Override
                public Long getValue() {
                    try {
                        if (eventBufferHolder != null) {
                            return eventBufferHolder.getBufferedEvents();
                        } else {
                            return 0L;
                        }
                    } catch (Throwable e) {
                        return 0L;
                    }
                }
@param eventBufferHolder Event buffer holder
@return Name of the BufferedEvents tracker.
modules/siddhi-core/src/main/java/io/siddhi/core/util/statistics/metrics/SiddhiBufferedEventsMetric.java