Skip to content

cluster_uuid is now also returned at the root of the cluster_state re… #3443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 17, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Nest/Cluster/ClusterState/ClusterStateResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ public interface IClusterStateResponse : IResponse
[JsonProperty("state_uuid")]
string StateUUID { get; }

/// <summary> NOTE: While the cluster is still forming, it is possible for the `cluster_uuid` to be `_na_`.</summary>
[JsonProperty("cluster_uuid")]
string ClusterUUID { get; }

[JsonProperty("version")]
long Version { get; }

Expand Down Expand Up @@ -42,6 +46,9 @@ public class ClusterStateResponse : ResponseBase, IClusterStateResponse

public string StateUUID { get; internal set; }

/// <inheritdoc cref="IClusterStateResponse.ClusterUUID"/>
public string ClusterUUID { get; internal set; }

public long Version { get; internal set; }

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