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