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 @@ -177,6 +177,9 @@ public class ClusterOperatingSystemStats
177
177
178
178
[ DataMember ( Name = "pretty_names" ) ]
179
179
public IReadOnlyCollection < ClusterOperatingSystemPrettyNane > PrettyNames { get ; internal set ; }
180
+
181
+ [ DataMember ( Name = "architectures" ) ]
182
+ public IReadOnlyCollection < ArchitectureStats > Architectures { get ; internal set ; }
180
183
}
181
184
182
185
[ DataContract ]
@@ -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 @@ -73,6 +73,14 @@ protected void Assert(ClusterNodesStats nodes)
73
73
nodes . OperatingSystem . AvailableProcessors . Should ( ) . BeGreaterThan ( 0 ) ;
74
74
nodes . OperatingSystem . AllocatedProcessors . Should ( ) . BeGreaterThan ( 0 ) ;
75
75
76
+ if ( Cluster . ClusterConfiguration . Version . InRange ( ">=7.12.0" ) )
77
+ {
78
+ nodes . OperatingSystem . Architectures . Should ( ) . NotBeNull ( ) ;
79
+ nodes . OperatingSystem . Architectures . Count . Should ( ) . BeGreaterThan ( 0 ) ;
80
+ nodes . OperatingSystem . Architectures . First ( ) . Architecture . Should ( ) . NotBeNullOrEmpty ( ) ;
81
+ nodes . OperatingSystem . Architectures . First ( ) . Count . Should ( ) . BeGreaterThan ( 0 ) ;
82
+ }
83
+
76
84
nodes . OperatingSystem . Names . Should ( ) . NotBeEmpty ( ) ;
77
85
78
86
if ( Cluster . ClusterConfiguration . Version >= "6.8.0" )
You can’t perform that action at this time.
0 commit comments