storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/cmd/bucket-stats.go (about) 1 /* 2 * MinIO Cloud Storage, (C) 2021 MinIO, Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package cmd 18 19 //go:generate msgp -file $GOFILE 20 21 // BucketStats bucket statistics 22 type BucketStats struct { 23 ReplicationStats BucketReplicationStats 24 } 25 26 // BucketReplicationStats represents inline replication statistics 27 // such as pending, failed and completed bytes in total for a bucket 28 type BucketReplicationStats struct { 29 // Pending size in bytes 30 PendingSize uint64 `json:"pendingReplicationSize"` 31 // Completed size in bytes 32 ReplicatedSize uint64 `json:"completedReplicationSize"` 33 // Total Replica size in bytes 34 ReplicaSize uint64 `json:"replicaSize"` 35 // Failed size in bytes 36 FailedSize uint64 `json:"failedReplicationSize"` 37 // Total number of pending operations including metadata updates 38 PendingCount uint64 `json:"pendingReplicationCount"` 39 // Total number of failed operations including metadata updates 40 FailedCount uint64 `json:"failedReplicationCount"` 41 }