Skip to content

Commit b1fa1d2

Browse files
committed
Add node id to _cat APIs: shards, segments, and plugins
Also added a bunch of missing values from _cat/shards Closes #1451
1 parent 0058d5d commit b1fa1d2

File tree

3 files changed

+158
-1
lines changed

3 files changed

+158
-1
lines changed

src/Nest/Domain/Cat/CatPluginsRecord.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace Nest
55
[JsonObject]
66
public class CatPluginsRecord : ICatRecord
77
{
8+
[JsonProperty("id")]
9+
public string Id { get; set; }
10+
811
[JsonProperty("name")]
912
public string Name { get; set; }
1013

@@ -23,6 +26,7 @@ public class CatPluginsRecord : ICatRecord
2326
[JsonProperty("url")]
2427
public string Url { get; set; }
2528

26-
29+
[JsonProperty("description")]
30+
public string Description { get; set; }
2731
}
2832
}

src/Nest/Domain/Cat/CatSegmentsRecord.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public class CatSegmentsRecord : ICatRecord
2121
[JsonProperty("ip")]
2222
public string Ip { get; set; }
2323

24+
[JsonProperty("id")]
25+
public string Id { get; set; }
26+
2427
[JsonProperty("segment")]
2528
public string Segment { get; set; }
2629

src/Nest/Domain/Cat/CatShardsRecord.cs

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,157 @@ public class CatShardsRecord : ICatRecord
2626
[JsonProperty("ip")]
2727
public string Ip { get; set; }
2828

29+
[JsonProperty("id")]
30+
public string Id { get; set; }
31+
2932
[JsonProperty("node")]
3033
public string Node { get; set; }
34+
35+
[JsonProperty("completion.size")]
36+
public string CompletionSize { get; set; }
37+
38+
[JsonProperty("fielddata.memory_size")]
39+
public string FielddataMemorySize { get; set; }
40+
41+
[JsonProperty("fielddata.evictions")]
42+
public string FielddataEvictions { get; set; }
43+
44+
[JsonProperty("filter_cache.memory_size")]
45+
public string FilterCacheMemorySize { get; set; }
46+
47+
[JsonProperty("flush.total")]
48+
public string FlushTotal { get; set; }
49+
50+
[JsonProperty("flush.total_time")]
51+
public string FlushTotalTime { get; set; }
52+
53+
[JsonProperty("get.current")]
54+
public string GetCurrent { get; set; }
55+
56+
[JsonProperty("get.time")]
57+
public string GetTime { get; set; }
58+
59+
[JsonProperty("get.total")]
60+
public string GetTotal { get; set; }
61+
62+
[JsonProperty("get.exists_time")]
63+
public string GetExistsTime { get; set; }
64+
65+
[JsonProperty("get.exists_total")]
66+
public string GetExistsTotal { get; set; }
67+
68+
[JsonProperty("get.missing_time")]
69+
public string GetMissingTime { get; set; }
70+
71+
[JsonProperty("get.missing_total")]
72+
public string GetMissingTotal { get; set; }
73+
74+
[JsonProperty("id_cache.memory_size")]
75+
public string IdCacheMemorySize { get; set; }
76+
77+
[JsonProperty("indexing.delete_current")]
78+
public string IndexingDeleteCurrent { get; set; }
79+
80+
[JsonProperty("indexing.delete_time")]
81+
public string IndexingDeleteTime { get; set; }
82+
83+
[JsonProperty("indexing.delete_total")]
84+
public string IndexingDeleteTotal { get; set; }
85+
86+
[JsonProperty("indexing.index_current")]
87+
public string IndexingIndexCurrent { get; set; }
88+
89+
[JsonProperty("indexing.index_time")]
90+
public string IndexingIndexTime { get; set; }
91+
92+
[JsonProperty("indexing.index_total")]
93+
public string IndexingIndexTotal { get; set; }
94+
95+
[JsonProperty("merges.current")]
96+
public string MergesCurrent { get; set; }
97+
98+
[JsonProperty("merges.current_docs")]
99+
public string MergesCurrentDocs { get; set; }
100+
101+
[JsonProperty("merges.current_size")]
102+
public string MergesCurrentSize { get; set; }
103+
104+
[JsonProperty("merges.total_docs")]
105+
public string MergesTotalDocs { get; set; }
106+
107+
[JsonProperty("merges.total_size")]
108+
public string MergesTotalSize { get; set; }
109+
110+
[JsonProperty("merges.total_time")]
111+
public string MergesTotalTime { get; set; }
112+
113+
[JsonProperty("percolate.current")]
114+
public string PercolateCurrent { get; set; }
115+
116+
[JsonProperty("percolate.memory_size")]
117+
public string PercolateMemorySize { get; set; }
118+
119+
[JsonProperty("percolate.queries")]
120+
public string PercolateQueries { get; set; }
121+
122+
[JsonProperty("percolate.time")]
123+
public string PercolateTime { get; set; }
124+
125+
[JsonProperty("percolate.total")]
126+
public string PercolateTotal { get; set; }
127+
128+
[JsonProperty("refresh.total")]
129+
public string RefreshTotal { get; set; }
130+
131+
[JsonProperty("refresh.time")]
132+
public string RefreshTime { get; set; }
133+
134+
[JsonProperty("search.fetch_current")]
135+
public string SearchFetchCurrent { get; set; }
136+
137+
[JsonProperty("search.fetch_time")]
138+
public string SearchFetchTime { get; set; }
139+
140+
[JsonProperty("search.fetch_total")]
141+
public string SearchFetchTotal { get; set; }
142+
143+
[JsonProperty("search.open_contexts")]
144+
public string SearchOpenContexts { get; set; }
145+
146+
[JsonProperty("search.query_current")]
147+
public string SearchQueryCurrent { get; set; }
148+
149+
[JsonProperty("search.query_time")]
150+
public string SearchQueryTime { get; set; }
151+
152+
[JsonProperty("search.query_total")]
153+
public string SearchQueryTotal { get; set; }
154+
155+
[JsonProperty("segments.count")]
156+
public string SegmentsCount { get; set; }
157+
158+
[JsonProperty("segments.memory")]
159+
public string SegmentsMemory { get; set; }
160+
161+
[JsonProperty("segments.index_writer_memory")]
162+
public string SegmentsIndexWriterMemory { get; set; }
163+
164+
[JsonProperty("segments.index_writer_max_memory")]
165+
public string SegmentsIndexWriterMaxMemory { get; set; }
166+
167+
[JsonProperty("segments.version_map_memory")]
168+
public string SegmentsVersionMapMemory { get; set; }
169+
170+
[JsonProperty("segments.fixed_bitset_memory")]
171+
public string SegmentsFixedBitsetMemory { get; set; }
172+
173+
[JsonProperty("warmer.current")]
174+
public string WarmerCurrent { get; set; }
175+
176+
[JsonProperty("warmer.total")]
177+
public string WarmerTotal { get; set; }
178+
179+
[JsonProperty("warmer.total_time")]
180+
public string WarmerTotalTime { get; set; }
31181
}
32182
}

0 commit comments

Comments
 (0)