feat: show config toggle states in /health/detailed
This commit is contained in:
@@ -556,6 +556,7 @@ struct DetailedHealthResponse {
|
||||
schema: SchemaHealth,
|
||||
identities: IdentityHealth,
|
||||
integrations: IntegrationHealth,
|
||||
config: ConfigHealth,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
@@ -572,6 +573,13 @@ struct IdentityHealth {
|
||||
synced: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
struct ConfigHealth {
|
||||
cache_enabled: bool,
|
||||
auto_pipeline_enabled: bool,
|
||||
watcher_auto_register_enabled: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
struct SchemaHealth {
|
||||
table_exists: bool,
|
||||
@@ -849,6 +857,11 @@ async fn health_detailed(State(state): State<AppState>) -> Json<DetailedHealthRe
|
||||
integrations: IntegrationHealth {
|
||||
tmdb: crate::core::tmdb::status::quick_status(),
|
||||
},
|
||||
config: ConfigHealth {
|
||||
cache_enabled: crate::core::config::get_cache_enabled(),
|
||||
auto_pipeline_enabled: crate::core::config::get_auto_pipeline_enabled(),
|
||||
watcher_auto_register_enabled: crate::core::config::get_watcher_auto_register(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user