File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
src/Nest/Cluster/ClusterStats
tests/Tests/Cluster/ClusterStats Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ public class ClusterNodesStats
42
42
43
43
[ DataMember ( Name = "ingest" ) ]
44
44
public ClusterIngestStats Ingest { get ; internal set ; }
45
+
46
+ [ DataMember ( Name = "architectures" ) ]
47
+ public IReadOnlyCollection < ArchitectureStats > Architectures { get ; internal set ; }
45
48
}
46
49
47
50
public class NodePackagingType
@@ -255,4 +258,14 @@ public class ClusterProcessorStats
255
258
[ DataMember ( Name = "time_in_millis" ) ]
256
259
public long TimeInMilliseconds { get ; set ; }
257
260
}
261
+
262
+ [ DataContract ]
263
+ public class ArchitectureStats
264
+ {
265
+ [ DataMember ( Name = "arch" ) ]
266
+ public string Architecture { get ; set ; }
267
+
268
+ [ DataMember ( Name = "count" ) ]
269
+ public int Count { get ; set ; }
270
+ }
258
271
}
Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ protected void Assert(ClusterNodesStats nodes)
100
100
101
101
if ( Cluster . ClusterConfiguration . Version >= "7.6.0" )
102
102
nodes . Ingest . Should ( ) . NotBeNull ( ) ;
103
+
104
+ if ( Cluster . ClusterConfiguration . Version >= "7.12.0" )
105
+ {
106
+ nodes . Architectures . Should ( ) . NotBeNull ( ) ;
107
+ nodes . Architectures . Count . Should ( ) . BeGreaterThan ( 0 ) ;
108
+ nodes . Architectures . First ( ) . Architecture . Should ( ) . NotBeNullOrEmpty ( ) ;
109
+ nodes . Architectures . First ( ) . Count . Should ( ) . BeGreaterThan ( 0 ) ;
110
+ }
103
111
}
104
112
105
113
protected void Assert ( ClusterIndicesStats indices )
You can’t perform that action at this time.
0 commit comments