@@ -15,14 +15,14 @@ type Metrics struct {
1515// Metric - holds a metric for data between nodes
1616type Metric struct {
1717 NodeName string `json:"node_name" bson:"node_name" yaml:"node_name"`
18- Uptime int64 `json:"uptime" bson:"uptime" yaml:"uptime"`
19- TotalTime int64 `json:"totaltime" bson:"totaltime" yaml:"totaltime"`
20- Latency int64 `json:"latency" bson:"latency" yaml:"latency"`
21- TotalReceived int64 `json:"totalreceived" bson:"totalreceived" yaml:"totalreceived"`
22- LastTotalReceived int64 `json:"lasttotalreceived" bson:"lasttotalreceived" yaml:"lasttotalreceived"`
23- TotalSent int64 `json:"totalsent" bson:"totalsent" yaml:"totalsent"`
24- LastTotalSent int64 `json:"lasttotalsent" bson:"lasttotalsent" yaml:"lasttotalsent"`
25- ActualUptime time.Duration `json:"actualuptime" bson:"actualuptime" yaml:"actualuptime"`
18+ Uptime int64 `json:"uptime" bson:"uptime" yaml:"uptime" swaggertype:"primitive,integer" format:"int64" `
19+ TotalTime int64 `json:"totaltime" bson:"totaltime" yaml:"totaltime" swaggertype:"primitive,integer" format:"int64" `
20+ Latency int64 `json:"latency" bson:"latency" yaml:"latency" swaggertype:"primitive,integer" format:"int64" `
21+ TotalReceived int64 `json:"totalreceived" bson:"totalreceived" yaml:"totalreceived" swaggertype:"primitive,integer" format:"int64" `
22+ LastTotalReceived int64 `json:"lasttotalreceived" bson:"lasttotalreceived" yaml:"lasttotalreceived" swaggertype:"primitive,integer" format:"int64" `
23+ TotalSent int64 `json:"totalsent" bson:"totalsent" yaml:"totalsent" swaggertype:"primitive,integer" format:"int64" `
24+ LastTotalSent int64 `json:"lasttotalsent" bson:"lasttotalsent" yaml:"lasttotalsent" swaggertype:"primitive,integer" format:"int64" `
25+ ActualUptime time.Duration `json:"actualuptime" swaggertype:"primitive,integer" format:"int64" bson:"actualuptime" yaml:"actualuptime"`
2626 PercentUp float64 `json:"percentup" bson:"percentup" yaml:"percentup"`
2727 Connected bool `json:"connected" bson:"connected" yaml:"connected"`
2828}
0 commit comments