aw_transform::classify

Function categorize

Source
pub fn categorize(
    events: Vec<Event>,
    rules: &[(Vec<String>, Rule)],
) -> Vec<Event>
Expand description

Categorizes a list of events

An event can only have one category, although the category may have a hierarchy, for instance: “Work -> ActivityWatch -> aw-server-rust” If multiple categories match, the deepest one will be chosen.