Skip to content

Commit b5db27a

Browse files
committed
Update NodeStats length types
NodeStats int lengths were not proper for the data types returned here, longs should be used instead.
1 parent 30e5a5d commit b5db27a

File tree

1 file changed

+38
-36
lines changed

1 file changed

+38
-36
lines changed

src/Nest/Domain/Stats/NodeStats.cs

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -74,34 +74,34 @@ public class IndexStoreStats : StoreStats
7474
[JsonProperty("throttle_time")]
7575
public string ThrottleTime { get; internal set; }
7676
[JsonProperty("throttle_time_in_millis")]
77-
public int ThrottleTimeInMilliseconds { get; internal set; }
77+
public long ThrottleTimeInMilliseconds { get; internal set; }
7878
}
7979

8080
[JsonObject]
8181
public class IndexCacheStats
8282
{
8383
[JsonProperty(PropertyName = "field_evictions")]
84-
public int FieldEvictions { get; internal set; }
84+
public long FieldEvictions { get; internal set; }
8585
[JsonProperty(PropertyName = "field_size")]
8686
public string FieldSize { get; internal set; }
8787
[JsonProperty(PropertyName = "field_size_in_bytes")]
88-
public int FieldSizeInBytes { get; internal set; }
88+
public long FieldSizeInBytes { get; internal set; }
8989
[JsonProperty(PropertyName = "filter_count")]
90-
public int FilterCount { get; internal set; }
90+
public long FilterCount { get; internal set; }
9191
[JsonProperty(PropertyName = "filter_evictions")]
92-
public int FilterEvictions { get; internal set; }
92+
public long FilterEvictions { get; internal set; }
9393
[JsonProperty(PropertyName = "filter_size")]
9494
public string FilterSize { get; internal set; }
9595
[JsonProperty(PropertyName = "filter_size_in_bytes")]
96-
public int FilterSizeInBytes { get; internal set; }
96+
public long FilterSizeInBytes { get; internal set; }
9797
[JsonProperty(PropertyName = "bloom_size")]
9898
public string BloomSize { get; internal set; }
9999
[JsonProperty(PropertyName = "bloom_size_in_bytes")]
100-
public int BloomSizeInBytes { get; internal set; }
100+
public long BloomSizeInBytes { get; internal set; }
101101
[JsonProperty(PropertyName = "id_cache_size")]
102102
public string IDCacheSize { get; internal set; }
103103
[JsonProperty(PropertyName = "id_cache_size_in_bytes")]
104-
public int IDCacheSizeInBytes { get; internal set; }
104+
public long IDCacheSizeInBytes { get; internal set; }
105105
}
106106
}
107107

@@ -114,6 +114,8 @@ public class UptimeStats
114114
public string Uptime { get; internal set; }
115115
[JsonProperty("uptime_in_millis")]
116116
public long UptimeInMilliseconds { get; internal set; }
117+
[JsonProperty("load_average")]
118+
public float[] LoadAverage { get; internal set; }
117119
}
118120

119121
[JsonObject]
@@ -190,15 +192,15 @@ public class CPUStats
190192
[JsonProperty("sys")]
191193
public string System { get; internal set; }
192194
[JsonProperty("sys_in_millis")]
193-
public int SystemInMilliseconds { get; internal set; }
195+
public long SystemInMilliseconds { get; internal set; }
194196
[JsonProperty("user")]
195197
public string User { get; internal set; }
196198
[JsonProperty("user_in_millis")]
197-
public int UserInMilliseconds { get; internal set; }
199+
public long UserInMilliseconds { get; internal set; }
198200
[JsonProperty("total")]
199201
public string Total { get; internal set; }
200202
[JsonProperty("total_in_millis")]
201-
public int TotalInMilliseconds { get; internal set; }
203+
public long TotalInMilliseconds { get; internal set; }
202204
}
203205

204206
[JsonObject]
@@ -207,11 +209,11 @@ public class MemoryStats
207209
[JsonProperty("resident")]
208210
public string Resident { get; internal set; }
209211
[JsonProperty("resident_in_bytes")]
210-
public int ResidentInBytes { get; internal set; }
212+
public long ResidentInBytes { get; internal set; }
211213
[JsonProperty("share")]
212214
public string Share { get; internal set; }
213215
[JsonProperty("share_in_bytes")]
214-
public int ShareInBytes { get; internal set; }
216+
public long ShareInBytes { get; internal set; }
215217
[JsonProperty("total_virtual")]
216218
public string TotalVirtual { get; internal set; }
217219
[JsonProperty("total_virtual_in_bytes")]
@@ -259,19 +261,19 @@ public class JVMPool
259261
[JsonProperty("used")]
260262
public string Used { get; internal set; }
261263
[JsonProperty("")]
262-
public int UsedInBytes { get; internal set; }
264+
public long UsedInBytes { get; internal set; }
263265
[JsonProperty("max")]
264266
public string Max { get; internal set; }
265267
[JsonProperty("max_in_bytes")]
266-
public int MaxInBytes { get; internal set; }
268+
public long MaxInBytes { get; internal set; }
267269
[JsonProperty("peak_used")]
268270
public string PeakUsed { get; internal set; }
269271
[JsonProperty("peak_used_in_bytes")]
270-
public int PeakUsedInBytes { get; internal set; }
272+
public long PeakUsedInBytes { get; internal set; }
271273
[JsonProperty("peak_max")]
272274
public string PeakMax { get; internal set; }
273275
[JsonProperty("peak_max_in_bytes")]
274-
public int PeakMaxInBytes { get; internal set; }
276+
public long PeakMaxInBytes { get; internal set; }
275277
}
276278
}
277279

@@ -299,7 +301,7 @@ public class GarbageCollectorStats
299301
[JsonProperty("collection_time")]
300302
public string CollectionTime { get; internal set; }
301303
[JsonProperty("collection_time_in_millis")]
302-
public int CollectionTimeInMilliseconds { get; internal set; }
304+
public long CollectionTimeInMilliseconds { get; internal set; }
303305
}
304306

305307
[JsonObject]
@@ -322,17 +324,17 @@ public class NodeBufferPool
322324
public class ThreadCountStats
323325
{
324326
[JsonProperty("threads")]
325-
public int Threads { get; internal set; }
327+
public long Threads { get; internal set; }
326328
[JsonProperty("queue")]
327-
public int Queue { get; internal set; }
329+
public long Queue { get; internal set; }
328330
[JsonProperty("active")]
329-
public int Active { get; internal set; }
331+
public long Active { get; internal set; }
330332
[JsonProperty("rejected")]
331-
public int Rejected { get; internal set; }
333+
public long Rejected { get; internal set; }
332334
[JsonProperty("largest")]
333-
public int Largest { get; internal set; }
335+
public long Largest { get; internal set; }
334336
[JsonProperty("completed")]
335-
public int Completed { get; internal set; }
337+
public long Completed { get; internal set; }
336338
}
337339

338340
[JsonObject]
@@ -345,25 +347,25 @@ public class NetworkStats
345347
public class TCPStats
346348
{
347349
[JsonProperty("active_opens")]
348-
public int ActiveOpens { get; internal set; }
350+
public long ActiveOpens { get; internal set; }
349351
[JsonProperty("passive_opens")]
350-
public int PassiceOpens { get; internal set; }
352+
public long PassiceOpens { get; internal set; }
351353
[JsonProperty("curr_estab")]
352-
public int CurrentEstablished { get; internal set; }
354+
public long CurrentEstablished { get; internal set; }
353355
[JsonProperty("in_segs")]
354-
public int InSegments { get; internal set; }
356+
public long InSegments { get; internal set; }
355357
[JsonProperty("out_segs")]
356-
public int OutSegments { get; internal set; }
358+
public long OutSegments { get; internal set; }
357359
[JsonProperty("retrans_segs")]
358-
public int RetransmittedSegments { get; internal set; }
360+
public long RetransmittedSegments { get; internal set; }
359361
[JsonProperty("estab_resets")]
360-
public int EstablishedResets { get; internal set; }
362+
public long EstablishedResets { get; internal set; }
361363
[JsonProperty("attempt_fails")]
362-
public int AttemptFails { get; internal set; }
364+
public long AttemptFails { get; internal set; }
363365
[JsonProperty("in_errs")]
364-
public int InErrors { get; internal set; }
366+
public long InErrors { get; internal set; }
365367
[JsonProperty("out_rsts")]
366-
public int OutResets { get; internal set; }
368+
public long OutResets { get; internal set; }
367369
}
368370
}
369371

@@ -397,9 +399,9 @@ public class DatumStats
397399
[JsonProperty("available_in_bytes")]
398400
public long AvailableInBytes { get; internal set; }
399401
[JsonProperty("disk_reads")]
400-
public int DiskReads { get; internal set; }
402+
public long DiskReads { get; internal set; }
401403
[JsonProperty("disk_writes")]
402-
public int DiskWrites { get; internal set; }
404+
public long DiskWrites { get; internal set; }
403405
[JsonProperty("disk_read_size")]
404406
public string DiskReadSize { get; internal set; }
405407
[JsonProperty("disk_read_size_in_bytes")]

0 commit comments

Comments
 (0)