2018-12-12 21:24:08 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package accounting
|
|
|
|
|
2019-01-10 11:41:57 +00:00
|
|
|
import "storj.io/storj/pkg/pb"
|
|
|
|
|
2018-12-18 17:18:42 +00:00
|
|
|
// Constants for accounting_raw, accounting_rollup, and accounting_timestamps
|
2018-12-12 21:24:08 +00:00
|
|
|
const (
|
|
|
|
// AtRest is the data_type representing at-rest data calculated from pointerdb
|
2019-01-10 11:41:57 +00:00
|
|
|
BandwidthPut = int(pb.PayerBandwidthAllocation_PUT)
|
|
|
|
BandwidthGet = int(pb.PayerBandwidthAllocation_GET)
|
|
|
|
BandwidthGetAudit = int(pb.PayerBandwidthAllocation_GET_AUDIT)
|
|
|
|
BandwidthGetRepair = int(pb.PayerBandwidthAllocation_GET_REPAIR)
|
|
|
|
BandwidthPutRepair = int(pb.PayerBandwidthAllocation_PUT_REPAIR)
|
|
|
|
AtRest = int(pb.PayerBandwidthAllocation_PUT_REPAIR + 1)
|
2018-12-18 17:18:42 +00:00
|
|
|
// 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"
|
2018-12-12 21:24:08 +00:00
|
|
|
)
|