fn capabilities(&self) -> SiemComponentCapabilities {
        let datasets = Vec::new();
        let mut commands = Vec::new();

        let stop_component = CommandDefinition::new(SiemFunctionType::STOP_COMPONENT,Cow::Borrowed("Stop BasicParser") ,Cow::Borrowed("This allows stopping all Basic Parser components.\nUse only when really needed, like when there is a bug in the parsing process.") , UserRole::Administrator);
        commands.push(stop_component);
        let start_component = CommandDefinition::new(
            SiemFunctionType::START_COMPONENT, // Must be added by default by the KERNEL and only used by him
            Cow::Borrowed("Start Basic Parser"),
            Cow::Borrowed("This allows processing logs."),
            UserRole::Administrator,
        );
        commands.push(start_component);

        let list_parsers = CommandDefinition::new(
            SiemFunctionType::OTHER(
                Cow::Borrowed("LIST_PARSERS"),
                std::collections::BTreeMap::new(),
            ), // Must be added by default by the KERNEL and only used by him
            Cow::Borrowed("List log parsers"),
            Cow::Borrowed("List all parsers in this component."),
            UserRole::Administrator,
        );
        commands.push(list_parsers);

        SiemComponentCapabilities::new(
            Cow::Borrowed("BasicParser"),
            Cow::Borrowed("Parse logs using multiple diferent parsers"),
            Cow::Borrowed(""), // No HTML
            datasets,
            commands,
            vec![],
        )
    }
/// Capabilities and actions that can be performed on this component
Capabilities and actions that can be performed on this component
Capabilities and actions that can be performed on this component
fn capabilities(&self) -> SiemComponentCapabilities {
        let datasets = Vec::new();
        let mut commands = Vec::new();
        let stop_component = CommandDefinition::new(SiemFunctionType::STOP_COMPONENT,Cow::Borrowed("Stop BasicParser") ,Cow::Borrowed("This allows stopping all Basic Parser components.\nUse only when really needed, like when there is a bug in the parsing process.") , UserRole::Administrator);
        commands.push(stop_component);
        let start_component = CommandDefinition::new(
            SiemFunctionType::START_COMPONENT, // Must be added by default by the KERNEL and only used by him
            Cow::Borrowed("Start Basic Parser"),
            Cow::Borrowed("This allows processing logs."),
            UserRole::Administrator,
        );
        commands.push(start_component);
        let list_parsers = CommandDefinition::new(
            SiemFunctionType::OTHER(
                Cow::Borrowed("LIST_PARSERS"),
                std::collections::BTreeMap::new(),
            ), // Must be added by default by the KERNEL and only used by him
            Cow::Borrowed("List log parsers"),
            Cow::Borrowed("List all parsers in this component."),
            UserRole::Administrator,
        );
        commands.push(list_parsers);
        SiemComponentCapabilities::new(
            Cow::Borrowed("BasicParser"),
            Cow::Borrowed("Parse logs using multiple diferent parsers"),
            Cow::Borrowed(""), // No HTML
            datasets,
            commands,
            vec![],
        )
    }
fn capabilities ( & self ) -> SiemComponentCapabilities { let datasets = Vec :: new ( ) ; let mut commands = Vec :: new ( ) ; let stop_component = CommandDefinition :: new ( SiemFunctionType :: STOP_COMPONENT , Cow :: Borrowed ( " " ) , Cow :: Borrowed ( " \n " ) , UserRole :: Administrator ) ; commands . push ( stop_component ) ; let start_component = CommandDefinition :: new ( SiemFunctionType :: START_COMPONENT , // Must be added by default by the KERNEL and only used by him Cow :: Borrowed ( " " ) , Cow :: Borrowed ( " " ) , UserRole :: Administrator , ) ; commands . push ( start_component ) ; let list_parsers = CommandDefinition :: new ( SiemFunctionType :: OTHER ( Cow :: Borrowed ( " " ) , std :: collections :: BTreeMap :: new ( ) , ) , // Must be added by default by the KERNEL and only used by him Cow :: Borrowed ( " " ) , Cow :: Borrowed ( " " ) , UserRole :: Administrator , ) ; commands . push ( list_parsers ) ; SiemComponentCapabilities :: new ( Cow :: Borrowed ( " " ) , Cow :: Borrowed ( " " ) , Cow :: Borrowed ( " " ) , // No HTML datasets , commands , vec ! [ ] , ) }
Capabilities and actions that can be performed on this component
Capabilities and actions that can be performed on this component
&self
&self