Compare commits
1 commit
eeb08e2225
...
2c95d4816f
Author | SHA1 | Date | |
---|---|---|---|
2c95d4816f |
1 changed files with 4 additions and 2 deletions
|
@ -113,7 +113,8 @@ impl EndpointHandler for GetClusterStatusRequest {
|
|||
Ok(GetClusterStatusResponse {
|
||||
node: hex::encode(garage.system.id),
|
||||
garage_version: garage_util::version::garage_version().to_string(),
|
||||
garage_features: garage_util::version::garage_features().map(|features| features.iter().map(ToString::to_string).collect()),
|
||||
garage_features: garage_util::version::garage_features()
|
||||
.map(|features| features.iter().map(ToString::to_string).collect()),
|
||||
rust_version: garage_util::version::rust_version().to_string(),
|
||||
db_engine: garage.db.engine(),
|
||||
layout_version: layout.current().version,
|
||||
|
@ -134,7 +135,8 @@ impl EndpointHandler for GetClusterHealthRequest {
|
|||
ClusterHealthStatus::Healthy => "healthy",
|
||||
ClusterHealthStatus::Degraded => "degraded",
|
||||
ClusterHealthStatus::Unavailable => "unavailable",
|
||||
}.to_string(),
|
||||
}
|
||||
.to_string(),
|
||||
known_nodes: health.known_nodes,
|
||||
connected_nodes: health.connected_nodes,
|
||||
storage_nodes: health.storage_nodes,
|
||||
|
|
Loading…
Add table
Reference in a new issue