Skip to content

Commit c5b71db

Browse files
committed
fix failing nodes stats api due to renamed percolator key on response
1 parent 176518e commit c5b71db

File tree

5 files changed

+5
-32
lines changed

5 files changed

+5
-32
lines changed

src/Nest/Cluster/ClusterStats/ClusterIndicesStats.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ClusterIndicesStats
1919
public FielddataStats Fielddata { get; internal set; }
2020

2121
[JsonProperty("percolate")]
22-
public PercolateStats Percolate { get; internal set; }
22+
public PercolatorStats Percolate { get; internal set; }
2323

2424
[JsonProperty("query_cache")]
2525
public QueryCacheStats QueryCache { get; internal set; }

src/Nest/CommonOptions/Stats/PercolateStats.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public class IndexStats
3838
[JsonProperty(PropertyName = "fielddata")]
3939
public FielddataStats Fielddata { get; set; }
4040

41-
[JsonProperty(PropertyName = "percolate")]
42-
public PercolateStats Percolate { get; set; }
41+
[JsonProperty(PropertyName = "percolator")]
42+
public PercolatorStats Percolator { get; set; }
4343

4444
[JsonProperty(PropertyName = "completion")]
4545
public CompletionStats Completion { get; set; }

src/Nest/Nest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
<Compile Include="CommonOptions\Stats\GetStats.cs" />
494494
<Compile Include="CommonOptions\Stats\IndexingStats.cs" />
495495
<Compile Include="CommonOptions\Stats\MergesStats.cs" />
496-
<Compile Include="CommonOptions\Stats\PercolateStats.cs" />
496+
<Compile Include="CommonOptions\Stats\PercolatorStats.cs" />
497497
<Compile Include="CommonOptions\Stats\PluginStats.cs" />
498498
<Compile Include="CommonOptions\Stats\QueryCacheStats.cs" />
499499
<Compile Include="CommonOptions\Stats\RecoveryStats.cs" />

src/Tests/Cluster/NodesStats/NodesStatsApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected void Assert(IndexStats index)
7373
index.Get.Should().NotBeNull();
7474
index.Indexing.Should().NotBeNull();
7575
index.Merges.Should().NotBeNull();
76-
index.Percolate.Should().NotBeNull();
76+
index.Percolator.Should().NotBeNull();
7777
index.QueryCache.Should().NotBeNull();
7878
index.Recovery.Should().NotBeNull();
7979

0 commit comments

Comments
 (0)