5d0816430f
* rename pkg/linksharing to linksharing * rename pkg/httpserver to linksharing/httpserver * rename pkg/eestream to uplink/eestream * rename pkg/stream to uplink/stream * rename pkg/metainfo/kvmetainfo to uplink/metainfo/kvmetainfo * rename pkg/auth/signing to pkg/signing * rename pkg/storage to uplink/storage * rename pkg/accounting to satellite/accounting * rename pkg/audit to satellite/audit * rename pkg/certdb to satellite/certdb * rename pkg/discovery to satellite/discovery * rename pkg/overlay to satellite/overlay * rename pkg/datarepair to satellite/repair
35 lines
954 B
Go
35 lines
954 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package accounting
|
|
|
|
import (
|
|
"time"
|
|
|
|
"storj.io/storj/pkg/storj"
|
|
)
|
|
|
|
// Constants for accounting_raw, accounting_rollup, and accounting_timestamps
|
|
const (
|
|
// LastAtRestTally represents the accounting timestamp for the at-rest data calculation
|
|
LastAtRestTally = "LastAtRestTally"
|
|
// LastBandwidthTally represents the accounting timestamp for the bandwidth allocation query
|
|
LastBandwidthTally = "LastBandwidthTally"
|
|
// LastRollup represents the accounting timestamp for rollup calculations
|
|
LastRollup = "LastRollup"
|
|
)
|
|
|
|
// CSVRow represents data from QueryPaymentInfo without exposing dbx
|
|
type CSVRow struct {
|
|
NodeID storj.NodeID
|
|
NodeCreationDate time.Time
|
|
AtRestTotal float64
|
|
GetRepairTotal int64
|
|
PutRepairTotal int64
|
|
GetAuditTotal int64
|
|
PutTotal int64
|
|
GetTotal int64
|
|
Wallet string
|
|
Disqualified *time.Time
|
|
}
|