Business::SLA -
use Business::SLA; my $SLAObj = new Business::SLA; $SLAObj->Add('2 real hours', ( 'RealMinutes' => 120, 'BusinessMinutes' => undef, )); $SLAObj->Add('1 business hour', ( 'RealMinutes' => 0, 'BusinessMinutes' => 60, )); $SLAObj->Add('next business minute', ( 'RealMinutes' => 0, 'BusinessMinutes' => 0, )); $SLAObj->SetInHoursDefault('2 real hours'); $SLAObj->SetOutOfHoursDefault('1 business hour');
This module is a simple tool for handling operations related to Service Level Agreements.
Send email to bug-business-sla@rt.cpan.org
Linda Julien Best Practical Solutions, LLC leira@bestpractical.com http://www.bestpractical.com
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1), Business::Hours.
Sets the Business::Hours object for this object.
Takes a Business::Hours object.
Returns the Business::Hours object.
Sets the default SLA for times inside of business hours.
Takes a string which is the hash key for the desired SLA.
Returns the default SLA for times inside of business hours.
Sets the default SLA for times outside of business hours.
Returns the default SLA for times outside of business hours.
Returns 1 if the date passed in is in business hours, and 0 otherwise. If no business hours have been set, returns 1 by default.
Takes a date in Unix time format (number of seconds since the epoch).
Returns the SLA for the specified time.
Adds an SLA value. Takes a string (the hash key) and a hash.
The number of real minutes to add for the specified SLA.
Takes the hash key for the SLA.
The number of business minutes to add for the specified SLA.
Returns the starting time, given an SLA and a date.
Takes a date in Unix time format (number of seconds since the epoch) and the hash key for the SLA.
Returns the due time, given an SLA and a date.
To install Business::SLA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::SLA
CPAN shell
perl -MCPAN -e shell install Business::SLA
For more information on module installation, please visit the detailed CPAN module installation guide.