1
2
3
4
5
6
7
8
9
10
11
12
13
14
use vector_lib::internal_event::{ComponentEventsDropped, Count, Registered, INTENTIONAL};

vector_lib::registered_event! (
    FilterEventsDropped => {
        events_dropped: Registered<ComponentEventsDropped<'static, INTENTIONAL>>
            = register!(ComponentEventsDropped::<INTENTIONAL>::from(
                "Events matched filter condition."
            )),
    }

    fn emit(&self, data: Count) {
        self.events_dropped.emit(data);
    }
);