Skip to main content

config_event_to_update

Function config_event_to_update 

Source
pub fn config_event_to_update(event: ConfigEvent) -> Option<ConfigUpdate>
Expand description

Converts one event from the Agent’s config stream into the update it carries.

A snapshot event becomes ConfigUpdate::Snapshot and an update event becomes ConfigUpdate::Partial. Returns None for an update event that carries no setting, and logs an error and returns None for an event with no data at all.