Skip to content

Commit e44bb69

Browse files
Mpdreamzrusscam
authored andcommitted
Add cluster_uuid to root of the cluster_state response (#3443)
(cherry picked from commit 2130ddf)
1 parent 8df1c22 commit e44bb69

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Nest/Cluster/ClusterState/ClusterStateResponse.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public interface IClusterStateResponse : IResponse
1414
[JsonProperty("state_uuid")]
1515
string StateUUID { get; }
1616

17+
/// <summary>The Universally Unique Identifier for the cluster.</summary>
18+
/// <remarks>While the cluster is still forming, it is possible for the `cluster_uuid` to be `_na_`.</remarks>
19+
[JsonProperty("cluster_uuid")]
20+
string ClusterUUID { get; }
21+
1722
[JsonProperty("version")]
1823
long Version { get; }
1924

@@ -42,6 +47,9 @@ public class ClusterStateResponse : ResponseBase, IClusterStateResponse
4247

4348
public string StateUUID { get; internal set; }
4449

50+
/// <inheritdoc cref="IClusterStateResponse.ClusterUUID"/>
51+
public string ClusterUUID { get; internal set; }
52+
4553
public long Version { get; internal set; }
4654

4755
public IReadOnlyDictionary<string, NodeState> Nodes { get; internal set; } = EmptyReadOnly<string, NodeState>.Dictionary;

0 commit comments

Comments
 (0)