NAME

Chroniton::Event - represents an event to be added to the event log (Chroniton::Messages).

SYNOPSIS

     my $log = Chroniton::Messages->new;

     $log->add(Chroniton::Event->mkdir("dir"));
     $log->add(Chroniton::Event->copy("foo", "bar/foo"));
     # etc.

CONSTRUCTORS

All of the below "methods" actually construct a Chroniton::Event (via Chroniton::Message::_new), suitable for passing to Chroniton::Messages.

event

A generic event. Arguemtns are filename (that the event applies to), message, and "event_id", an integer. 10-13 are reserved for the below events (copy, link, delete, mkdir).

copy

A file copy event. Arguments are source filename, destination filename, time elapsed (optional), and bytes copied (optional).

A file symlink event. Arguments are source filename and destination filename.

delete

A file deletion event. Argument is the filename that was deleted.

mkdir

A directory creation event. Argument is the name of the directory that was created.