The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::OverWatch::EventLog - EventLog base class

VERSION

version 0.007

SYNOPSIS

  use App::OverWatch;
  my $OverWatch = App::OverWatch->new();
  [...]
  my $EventLog = $OverWatch->EventLog();

NAME

App::OverWatch::EventLog - App::OverWatch Events System

METHODS

new

Create an App::OverWatch::EventLog object - usualy handled by App::OverWatch.

create_event

Log an event in the database.

  $EventLog->create_event({
      system    => 'global',
      subsystem => 'uk',
      worker    => 'myworkerid',
      type      => 'START',      ## START / PROGRESS / END / POINT
      data      => 'some data',
  });

get_events

Retrieve all events in the DB.

  my @Events = $EventLog->get_events();

AUTHOR

Chris Hughes <chrisjh@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Chris Hughes.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.