diff --git a/perf-site-replication.go b/perf-site-replication.go index b5a148c..23f4773 100644 --- a/perf-site-replication.go +++ b/perf-site-replication.go @@ -29,13 +29,14 @@ import ( // SiteNetPerfNodeResult - stats from each server type SiteNetPerfNodeResult struct { - Endpoint string `json:"endpoint"` - TX uint64 `json:"tx"` // transfer rate in bytes - TXTotalDuration time.Duration `json:"txTotalDuration"` - RX uint64 `json:"rx"` // received rate in bytes - RXTotalDuration time.Duration `json:"rxTotalDuration"` - TotalConn uint64 `json:"totalConn"` - Error string `json:"error,omitempty"` + Endpoint string `json:"endpoint"` + TX uint64 `json:"tx"` // transfer rate in bytes + TXTotalDuration time.Duration `json:"txTotalDuration"` + TXTotalSpentDuration time.Duration `json:"txTotalSpentDuration"` + RX uint64 `json:"rx"` // received rate in bytes + RXTotalDuration time.Duration `json:"rxTotalDuration"` + TotalConn uint64 `json:"totalConn"` + Error string `json:"error,omitempty"` } // SiteNetPerfResult - aggregate results from all servers