DOKK / manpages / debian 12 / munin-doc / Munin::Node::SpoolWriter.3pm.en
Munin::Node::SpoolWriter(3pm) User Contributed Perl Documentation Munin::Node::SpoolWriter(3pm)

Munin::Node::SpoolWriter - Writing side of the spool functionality

  my $spool = Munin::Node::SpoolWriter->new(spooldir => $spooldir);
  $spool->write(1234567890, 'cpu', \@results);

Constructor. 'spooldir' key should be the directory Munin::Node::SpoolReader is reading from.
Takes a timestamp, service name, and the results of running config and fetch on it. Writes it to the spool directory for Munin::Node::SpoolReader to read.
Removes any items in the spool directory older than $timestamp.
2023-03-21 perl v5.36.0