<!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 superservice="www" id="bytes-by-result-by-period"
 xmlns:lire="http://www.logreport.org/LRSML/">

 <lire:title>Bytes By HTTP Result By Period WWW Report</lire:title>
 <lire:description>
  <para>This report calculates the size of all requests by HTTP result
   by a user-configurable time period.
  </para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="period" type="duration" default="1d">
   <lire:description>
    <para>This parameter controls the time period which is use to
     aggregate the records.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>Total Size of Requests by HTTP Result by $period Period</lire:title>
 </lire:display-spec>

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

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

    <lire:sum name="bytes_total" field="requested_page_size"/>
    <lire:sum name="bytes_ratio" field="requested_page_size"
     ratio="table" label="% Total"/>
    <lire:sum name="bytes_group_ratio" field="requested_page_size"
     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
-->
