storj/web/satellite/static/reports/usageReport.html
Michał Niewrzał 0ca7583282 satellite/accounting: add total for bytes and segments to tallies
We want to calculate bucket tally only from iterating objects.
Object currently has an info about totals for bytes and segments.
We need to adjust tallies to keep those totals. Older entries will
be untouched and code will use totals only if available. Change
is adding columns for totals to bucket_storage_tally table and
is adding general handling for them.

Next step is to start using total columns instead of inline/remote.
This will be done with next change.

Change-Id: I37fed1b327789efcf1d0570318aee3045db17fad
2021-07-01 08:52:32 +00:00

94 lines
3.8 KiB
HTML

<!--Copyright (C) 2019 Storj Labs, Inc.-->
<!--See LICENSE for copying information.-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bucket usage rollups</title>
<link href="/static/static/fonts/font_regular.ttf" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="error.css">
<style>
table.blueTable {
border: 1px solid #1C6EA4;
background-color: #EEEEEE;
width: 100%;
text-align: center;
border-collapse: collapse;
}
table.blueTable td, table.blueTable th {
border: 1px solid #AAAAAA;
padding: 3px 2px;
}
table.blueTable tbody td {
font-size: 13px;
}
table.blueTable tbody tr:nth-child(even) {
background: #D0E4F5;
}
table.blueTable thead {
background: #1C6EA4;
background: -moz-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
background: -webkit-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
background: linear-gradient(to bottom, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
border-bottom: 2px solid #444444;
}
table.blueTable thead th {
font-size: 15px;
font-weight: bold;
color: #FFFFFF;
border-left: 2px solid #D0E4F5;
}
table.blueTable thead th:first-child {
border-left: none;
}
</style>
</head>
<body>
<div>
<table class="blueTable">
<thead>
<tr>
<th>Bucket Name</th>
<th>Roll Up Period Start</th>
<th>Roll Up Period End</th>
<th>Network Stored Data, GBh</th>
<th colspan="3">Egress, GB</th>
<th>Segments, count*hours</th>
<th>Objects, count*hours</th>
<th>Metadata Size, GBh</th>
</tr>
<tr>
<th></th>
<th></th>
<th></th>
<th>Total</th>
<th>Repair</th>
<th>Get</th>
<th>Audit</th>
<th>Total Segments</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{{ range $i, $value := . }}
<tr>
<td class="tg-0lax">{{ printf "%s" $value.BucketName }}</td>
<td class="tg-0lax">{{ printf "%s" $value.Since }}</td>
<td class="tg-0lax">{{ printf "%s" $value.Before }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.TotalStoredData }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.RepairEgress }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.GetEgress }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.AuditEgress }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.TotalSegments }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.ObjectCount }}</td>
<td class="tg-0lax">{{ printf "%.6f" $value.MetadataSize }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</body>
</html>