/// Create a stat holder, publishing counters under the given node.
Create a stat holder, publishing counters under the given node.
Create a stat holder publishing counters under the given node .
pub fn new(node: inspect::Node) -> Self {
        let total_logs = node.create_uint("total_logs", 0);
        let kernel_logs = node.create_uint("kernel_logs", 0);
        let logsink_logs = node.create_uint("logsink_logs", 0);
        let verbose_logs = node.create_uint("verbose_logs", 0);
        let info_logs = node.create_uint("info_logs", 0);
        let warning_logs = node.create_uint("warning_logs", 0);
        let error_logs = node.create_uint("error_logs", 0);
        let fatal_logs = node.create_uint("fatal_logs", 0);
        Self {
            _node: node,
            kernel_logs,
            logsink_logs,
            total_logs,
            verbose_logs,
            info_logs,
            warning_logs,
            error_logs,
            fatal_logs,
        }
    }
pub fn new ( node : inspect :: Node ) -> Self { let total_logs = node . create_uint ( " " , 0 ) ; let kernel_logs = node . create_uint ( " " , 0 ) ; let logsink_logs = node . create_uint ( " " , 0 ) ; let verbose_logs = node . create_uint ( " " , 0 ) ; let info_logs = node . create_uint ( " " , 0 ) ; let warning_logs = node . create_uint ( " " , 0 ) ; let error_logs = node . create_uint ( " " , 0 ) ; let fatal_logs = node . create_uint ( " " , 0 ) ; Self { _node : node , kernel_logs , logsink_logs , total_logs , verbose_logs , info_logs , warning_logs , error_logs , fatal_logs , } }
Create a stat holder, publishing counters under the given node.
Create a stat holder publishing counters under the given node .
node
inspect::Node