Mojo::Netdata::Util - Utility functions for Mojo::Netdata
use Mojo::Netdata::Util qw(safe_id); print safe_id 'Not%co.ol';
Mojo::Netdata::Util as functions that can be useful when working with Mojo::Netdata::Collector classes.
logf $level, $format, @args;
Used to log messages to STDERR. $level can be "debug", "info", "warnings", "error", "fatal". Any references and undefined values in @args will be serialized using "encode_json" in Mojo::JSON.
$level
@args
$str = safe_id $str;
Turns an "unsafe" string into a string you can use for things like "id" or "type". This is called by "to_string" in Mojo::Netdata::Chart and "data_to_string" in Mojo::Netdata::Chart to make sure the output strings are safe.
Mojo::Netdata.
To install Mojo::Netdata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::Netdata
CPAN shell
perl -MCPAN -e shell install Mojo::Netdata
For more information on module installation, please visit the detailed CPAN module installation guide.