Compare commits

...

1 Commits

Author SHA1 Message Date
Dasio
610ab8c66a Add some missing attributes for members 2021-05-03 10:29:11 +02:00
2 changed files with 20 additions and 15 deletions

1
.gitignore vendored
View File

@@ -25,3 +25,4 @@ config/deb/control.bak
config/rpm/percona-toolkit.spec.bak
config/sphinx-build/percona-theme/*
coverage.out
.idea

View File

@@ -36,7 +36,11 @@ type Members struct {
Self bool `bson:"self"` // true if this is the server we are currently connected
State float64 `bson:"state"` // integer between 0 and 10 that represents the replica state of the member.
ElectionTime primitive.Timestamp `bson:"electionTime"` // For the current primary, information regarding the election Timestamp from the operation log.
ElectionDate primitive.DateTime `bson:"electionDate"` // For the current primary, an ISODate formatted date string that reflects the election date
ElectionDate primitive.DateTime `bson:"electionDate"` // For the current primary, an ISODate formatted date string that reflects the election date.
LastHeartbeat primitive.DateTime `bson:"lastHeartbeat"` // Reflects the last time the server that processed the replSetGetStatus command received a response from a heartbeat that it sent to this member.
LastHeartbeatRecv primitive.DateTime `bson:"lastHeartbeatRecv"` // Reflects the last time the server that processed the replSetGetStatus command received a heartbeat request from this member.
LastHeartbeatMessage string `bson:"lastHeartbeatMessage"` // Contains a string representation of that message.
PingMs *float64 `bson:"pingMs,omitempty"` // Represents the number of milliseconds (ms) that a round-trip packet takes to travel between the remote member and the local instance.
Set string `bson:"-"`
StorageEngine StorageEngine
}