Struct re_analytics::Analytics
source · pub struct Analytics { /* private fields */ }Implementations§
source§impl Analytics
impl Analytics
pub fn new(tick: Duration) -> Result<Self, AnalyticsError>
pub fn config(&self) -> &Config
sourcepub fn register_append_property(
&mut self,
name: &'static str,
prop: impl Into<Property>
)
pub fn register_append_property( &mut self, name: &'static str, prop: impl Into<Property> )
Register a property that will be included in all EventKind::Append.
sourcepub fn deregister_append_property(&mut self, name: &'static str)
pub fn deregister_append_property(&mut self, name: &'static str)
Deregister a property.
sourcepub fn record(&self, event: Event)
pub fn record(&self, event: Event)
Record an event.
It will be extended with an event_id and, if this is an EventKind::Append,
any properties registered with Self::register_append_property.