We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46da791 commit 57a4ac8Copy full SHA for 57a4ac8
java/server/src/org/openqa/selenium/grid/graphql/Grid.java
@@ -98,6 +98,10 @@ public List<Node> getNodes() {
98
return toReturn.build();
99
}
100
101
+ public int getNodeCount() {
102
+ return distributorStatus.get().getNodes().size();
103
+ }
104
+
105
public int getSessionCount() {
106
return distributorStatus.get().getNodes().stream()
107
.map(NodeStatus::getSlots)
java/server/src/org/openqa/selenium/grid/graphql/selenium-grid-schema.graphqls
@@ -65,6 +65,7 @@ type GridQuery {
65
type Grid {
66
uri: Uri!
67
totalSlots: Int!
68
+ nodeCount: Int!
69
maxSession: Int!
70
sessionCount: Int!
71
version: String!
0 commit comments