Munin::...lWriter(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

✨ 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