3.10. reporting

3.10.1. NAME

reporting - Guardian Digital WebTool module interface to system reports.

3.10.2. SYNOPSIS

use reporting;
my $reporting  = new reporting($page);

3.10.3. DESCRIPTION

This Guardian Digital WebTool module provides an interface to listing and retrieving system reports.

3.10.4. METHODS

get_reptypes($)

This function returns array of report types available under /var/log/reports. It receives webtool UI object(page) as argument.

Example Usage:

my @reptypes = $reporting->get_reptypes($page);

get_repdates($)

This function returns array of report dates by reading /var/log/reports directory. If no dates found than by default it gives current localtime as report date. Array of dates in returned as result.

Example Usage:

my @reports = $reporting->get_repdates($reptype);

read_report($$)

This function is used to read report file. It receives report name and date as argument and returns a report in array form as a result.

Example Usage:

@repdata = $reporting->read_report($reptype, $repdate);

3.10.5. AUTHORS

Pax Dickinson <pax@guardiandigital.com>

3.10.6. COPYRIGHT AND LICENSE

Copyright Guardian Digital, Inc., All Rights Reserved