Munin::...lWriter(3)
β¨ NAME β¨
okay so this is the Munin::...lWriter(3) page from the User Contributed Perl Documentation, and the main character is Munin::Node::SpoolWriter β literally the writing side of the spool functionality π
πΈ SYNOPSIS πΈ
my $spool = Munin::Node::SpoolWriter->new(spooldir => $spooldir);
$spool->write(1234567890, 'cpu', \@results);
π METHODS π
new(%args)
Constructor vibes β¨ the 'spooldir' key should be the directory that Munin::Node::SpoolReader is reading from. yep, theyβre matching besties π«Ά
write($timestamp, $service, \@results)
Takes a timestamp, service name, and the results of running config and fetch on it. Then it writes all that into the spool directory so Munin::Node::SpoolReader can read it. slay, passing the message along π
cleanup($timestamp)
Removes any items in the spool directory older than $timestamp. bye bye old spool stuff πποΈ
k bye bestie, this page is from perl v5.42.3, dated 1980-01-01 β mwah π
π¦ where this page comes from
- nixos 26.05: munin 2.0.76
- nixpkgs unstable: munin 2.0.78
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms