mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-08-28 15:57:18 +00:00
Also add a total number of nodes in a field for convenience
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
@@ -33,6 +33,9 @@ type ClusterHealthResults struct {
|
||||
// nodes healthy
|
||||
NodesHealthy []string `json:"nodesHealthy"`
|
||||
|
||||
// nodes total
|
||||
NodesTotal int64 `json:"nodesTotal,omitempty"`
|
||||
|
||||
// nodes unhealthy
|
||||
NodesUnhealthy []string `json:"nodesUnhealthy"`
|
||||
}
|
||||
|
||||
@@ -249,6 +249,10 @@ func init() {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"nodesTotal": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"nodesUnhealthy": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -576,6 +580,10 @@ func init() {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"nodesTotal": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"nodesUnhealthy": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
||||
@@ -144,6 +144,9 @@ definitions:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
nodesTotal:
|
||||
type: integer
|
||||
format: int64
|
||||
generated-at:
|
||||
type: string
|
||||
format: date-time
|
||||
|
||||
Reference in New Issue
Block a user