per-agent configuration of batch processors, #71837
[freeside.git] / torrus / templates / report-serviceid.html
1 [% PROCESS 'html-incblocks.txt' %]
2 [% INCLUDE htmlstart
3      title="Torrus Reports: " _ year
4      contentClass="SingleColumnContent"
5      noTopMenu=1 %]
6
7 <H1>Torrus report: <A HREF="[% yearlyUrl(year) %]">[% year %]</A>,
8 [% serviceid %]</H1>
9
10 [% INCLUDE treename %]
11
12 [% FOREACH reportname = data.keys.sort;
13      fieldshash = data.$reportname;
14      IF reportname == 'MonthlyUsage' %]
15
16 <TABLE CLASS="ReportTable">
17 <CAPTION CLASS="ReportTable">Monthly usage</CAPTION>
18 <TR CLASS="ReportHeadRow">
19 <TD CLASS="ReportHeadCell">Month</TD>
20 <TD CLASS="ReportHeadCell">Average</TD>
21 <TD CLASS="ReportHeadCell">95th<BR/>Percentile</TD>
22 <TD CLASS="ReportHeadCell">Maximum</TD>
23 <TD CLASS="ReportHeadCell">Unavailable<BR/>samples</TD>
24 <TD CLASS="ReportHeadCell">Volume</TD>
25 <TD CLASS="ReportHeadCell">Extrapolated<BR/>volume</TD>
26 </TR>
27 [%     rowCount = 0;
28        FOREACH mth = fieldshash.keys.sort;
29          rowCount = rowCount + 1;
30          IF rowCount % 2 %]
31 <TR CLASS="ReportEvenRow">
32 [%       ELSE %]
33 <TR CLASS="ReportRow">
34 [%       END %]       
35 <TD CLASS="ReportFirstCell">
36 <A HREF="[% monthlyUrl(mth) %]">[% monthName(mth) %]</A>
37 </TD>
38 [%       FOREACH varname = ['AVG', '95TH_PERCENTILE', 'MAX',
39                             'UNAVAIL', 'VOLUME'] %]
40 <TD CLASS="ReportCell">
41 [% formatValue( fieldshash.$mth.$varname ) %]
42 </TD>
43 [%       END %]
44 <TD CLASS="ReportCell">
45 [% extr.value = fieldshash.$mth.VOLUME.value * 100 /
46                  ( 100 - fieldshash.$mth.UNAVAIL.value );
47    extr.units = fieldshash.$mth.VOLUME.units;
48    formatValue( extr ) %]
49 </TD>
50 </TR>
51 [%     END %]
52 </TABLE>
53
54 [% ELSE %]
55
56 <TABLE CLASS="ReportTable">
57 <CAPTION CLASS="ReportTable">[% reportname %]</CAPTION>
58 <TR CLASS="ReportHeadRow">
59 <TD CLASS="ReportHeadCell">Month</TD>
60 <TD CLASS="ReportHeadCell">Field</TD>
61 <TD CLASS="ReportHeadCell">Value</TD>
62 </TR>
63 [%     rowCount = 0;
64        FOREACH mth = fieldshash.keys.sort;
65          FOREACH varname = fieldshash.$mth.keys.sort;
66            rowCount = rowCount + 1;
67            IF rowCount % 2 %]
68 <TR CLASS="ReportEvenRow">
69 [%         ELSE %]
70 <TR CLASS="ReportRow">
71 [%         END %]       
72 <TD CLASS="ReportFirstCell">
73 <A HREF="[% monthlyUrl(mth) %]">[% monthName(mth) %]</A>
74 </TD>
75 <TD CLASS="ReportCell">
76 [% varname %]
77 </TD>
78 <TD CLASS="ReportCell">
79 [% formatValue( fieldshash.$mth.$varname ) %]
80 </TD>
81 </TR>
82 [%       END;
83        END %]
84 </TABLE>
85 [%   END;
86    END %]
87
88 <DIV CLASS="ReportLegend">
89
90 <DIV CLASS="ReportLegendLine">
91 <SPAN CLASS="ReportLegendTerm">
92 Average:
93 </SPAN>
94 <SPAN CLASS="ReportLegendDef">
95 the monthly average of 5-minute samples.
96 </SPAN>
97 </DIV>
98
99 <DIV CLASS="ReportLegendLine">
100 <SPAN CLASS="ReportLegendTerm">
101 95th percentile:
102 </SPAN>
103 <SPAN CLASS="ReportLegendDef">
104 95% of the time, the usage is at or below this amount.
105 </SPAN>
106 </DIV>
107
108 <DIV CLASS="ReportLegendLine">
109 <SPAN CLASS="ReportLegendTerm">
110 Maximum:
111 </SPAN>
112 <SPAN CLASS="ReportLegendDef">
113 the maximum value among 5-minute samples.
114 </SPAN>
115 </DIV>
116
117 <DIV CLASS="ReportLegendLine">
118 <SPAN CLASS="ReportLegendTerm">
119 Unavailable samples:
120 </SPAN>
121 <SPAN CLASS="ReportLegendDef">
122 how many 5-minute samples were missed from the measurements.
123 </SPAN>
124 </DIV>
125
126 <DIV CLASS="ReportLegendLine">
127 <SPAN CLASS="ReportLegendTerm">
128 Volume:
129 </SPAN>
130 <SPAN CLASS="ReportLegendDef">
131 for traffic usage, this is the absolut volume of data in avaiable 5-minute
132 samples.
133 </SPAN>
134 </DIV>
135
136 <DIV CLASS="ReportLegendLine">
137 <SPAN CLASS="ReportLegendTerm">
138 Extrapolated volume:
139 </SPAN>
140 <SPAN CLASS="ReportLegendDef">
141 for traffic usage, this is the volume of data extrapolated to the whole
142 time range.
143 </SPAN>
144 </DIV>
145 </DIV>
146
147 [% INCLUDE htmlend %]