Skip to content

Commit 1645c45

Browse files
committed
Add seed_hosts field to ClusterStatus
1 parent 32c38bb commit 1645c45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/spotify/reaper/resources/view/ClusterStatus.java

+4
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@
1717
import com.spotify.reaper.core.Cluster;
1818

1919
import java.util.Collection;
20+
import java.util.Set;
2021

2122
public class ClusterStatus {
2223

2324
@JsonProperty
2425
public final String name;
26+
@JsonProperty("seed_hosts")
27+
public final Set<String> seedHosts;
2528
@JsonProperty("repair_runs")
2629
public final Collection<RepairRunStatus> repairRuns;
2730

2831
public ClusterStatus(Cluster cluster, Collection<RepairRunStatus> repairRuns) {
2932
this.name = cluster.getName();
33+
this.seedHosts = cluster.getSeedHosts();
3034
this.repairRuns = repairRuns;
3135
}
3236
}

0 commit comments

Comments
 (0)