mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-01 04:20:39 +00:00
## Summary of changes All changes are no-op except that the tracing-appender lib is upgraded from 0.2.2 to 0.2.3
41 lines
1.3 KiB
Rust
41 lines
1.3 KiB
Rust
use compute_api::responses::ComputeStatusResponse;
|
|
|
|
use crate::compute::ComputeState;
|
|
|
|
pub(in crate::http) mod check_writability;
|
|
pub(in crate::http) mod configure;
|
|
pub(in crate::http) mod database_schema;
|
|
pub(in crate::http) mod dbs_and_roles;
|
|
pub(in crate::http) mod extension_server;
|
|
pub(in crate::http) mod extensions;
|
|
pub(in crate::http) mod failpoints;
|
|
pub(in crate::http) mod grants;
|
|
pub(in crate::http) mod hadron_liveness_probe;
|
|
pub(in crate::http) mod insights;
|
|
pub(in crate::http) mod lfc;
|
|
pub(in crate::http) mod metrics;
|
|
pub(in crate::http) mod metrics_json;
|
|
pub(in crate::http) mod promote;
|
|
pub(in crate::http) mod refresh_configuration;
|
|
pub(in crate::http) mod status;
|
|
pub(in crate::http) mod terminate;
|
|
|
|
impl From<&ComputeState> for ComputeStatusResponse {
|
|
fn from(state: &ComputeState) -> Self {
|
|
ComputeStatusResponse {
|
|
start_time: state.start_time,
|
|
tenant: state
|
|
.pspec
|
|
.as_ref()
|
|
.map(|pspec| pspec.tenant_id.to_string()),
|
|
timeline: state
|
|
.pspec
|
|
.as_ref()
|
|
.map(|pspec| pspec.timeline_id.to_string()),
|
|
status: state.status,
|
|
last_active: state.last_active,
|
|
error: state.error.clone(),
|
|
}
|
|
}
|
|
}
|