Kaare:

1) make a description of the start and end times, possibly using
DateTime::Event::Recurrence. Exclude the holidays from the sets.
2) create a SpanSet from the start and end recurrences.
3) create a description of the downtime, using Span (or SpanSet).

The total downtime is downtime_span->duration.

The business time is downtime_span->intersection( business_hours )->duration

- Flavio S. Glock

2005/8/15, Kaare Rasmussen <[EMAIL PROTECTED]>:
> Hi
> 
> I wonder if it is possible to use DT::Set for SLA calculations, and how much
> work it would take to get this done.
> 
> SLA (Service Level Agreements) usually builds on some business hours where
> you are responsible for the downtime of the system. Business hours could
> look like this:
> 
> Mon-Thurs: 7:30-18:00
> Fri: 7:30-16:00 and 18:00-22:00
> 
> Every first friday of the month: Service window from 12:00-16:00
> 
> Holidays are to be excluded.
> 
> If this could be declared infinite it would be nice, but not necessary.
> 
> I would like to know how much time it took for an event to occur totally,
> and in business hours.
> 
>

Reply via email to