2019-12-12 12:58:15 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package console
|
|
|
|
|
|
|
|
// ProjectUsageLimits holds project usage limits and current usage.
|
|
|
|
type ProjectUsageLimits struct {
|
|
|
|
StorageLimit int64 `json:"storageLimit"`
|
|
|
|
BandwidthLimit int64 `json:"bandwidthLimit"`
|
|
|
|
StorageUsed int64 `json:"storageUsed"`
|
|
|
|
BandwidthUsed int64 `json:"bandwidthUsed"`
|
2021-11-17 15:32:34 +00:00
|
|
|
ObjectCount int64 `json:"objectCount"`
|
|
|
|
SegmentCount int64 `json:"segmentCount"`
|
2023-02-15 17:54:22 +00:00
|
|
|
RateLimit int64 `json:"rateLimit"`
|
|
|
|
SegmentLimit int64 `json:"segmentLimit"`
|
|
|
|
RateUsed int64 `json:"rateUsed"`
|
|
|
|
SegmentUsed int64 `json:"segmentUsed"`
|
2023-11-15 13:58:55 +00:00
|
|
|
BucketsUsed int64 `json:"bucketsUsed"`
|
|
|
|
BucketsLimit int64 `json:"bucketsLimit"`
|
2019-12-12 12:58:15 +00:00
|
|
|
}
|
2021-11-01 15:27:32 +00:00
|
|
|
|
2022-12-15 03:56:11 +00:00
|
|
|
// UsageLimits represents storage, bandwidth, and segment limits imposed on an entity.
|
|
|
|
type UsageLimits struct {
|
|
|
|
Storage int64 `json:"storage"`
|
|
|
|
Bandwidth int64 `json:"bandwidth"`
|
|
|
|
Segment int64 `json:"segment"`
|
2021-11-01 15:27:32 +00:00
|
|
|
}
|