Skip to content

Commit bf00584

Browse files
authoredMar 22, 2025··
make downtime info as map to denote per target info (#2079)
1 parent 07d26d9 commit bf00584

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎pkg/replication/replication.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,10 @@ func (q ReplQueueStats) QStats() (r ReplQStats) {
988988

989989
// MetricsV2 represents replication metrics for a bucket.
990990
type MetricsV2 struct {
991-
Uptime int64 `json:"uptime"`
992-
CurrentStats Metrics `json:"currStats"`
993-
QueueStats ReplQueueStats `json:"queueStats"`
994-
DowntimeInfo DowntimeInfo `json:"downtimeInfo"`
991+
Uptime int64 `json:"uptime"`
992+
CurrentStats Metrics `json:"currStats"`
993+
QueueStats ReplQueueStats `json:"queueStats"`
994+
DowntimeInfo map[string]DowntimeInfo `json:"downtimeInfo"`
995995
}
996996

997997
// DowntimeInfo represents the downtime info

0 commit comments

Comments
 (0)
Please sign in to comment.