<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="email" id="deliveries-by-period-by-status">

 <lire:title>Deliveries Attempts By Period By Status Email Report</lire:title>
 <lire:description>
  <para>This report shows the number of delivery attempts that
   resulted in a specific status, aggregated in configurable time periods.
  </para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="period" type="duration" default="1d">
   <lire:description>
    <para>This parameter controls the time period over which the
     deliveries are aggregated.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>Deliveries Attempts By $period Period By Status</lire:title>
 </lire:display-spec>

 <lire:report-calc-spec>
  <lire:timegroup period="$period" label="Period">

   <lire:group sort="stat">
    <lire:field name="stat"/>

    <lire:count name="deliveries_total" label="Deliveries"/>
    <lire:count name="deliveries_ratio" ratio="table" label="% Total"/>
    <lire:count name="deliveries_group_ratio" ratio="group" label="% Period"/>
   </lire:group>
  </lire:timegroup>

 </lire:report-calc-spec>

</lire:report-spec>

<!-- 
Keep this comment at the end of the file
Local variables:
mode: xml
-->
