1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Copyright 2025 Neuraville Inc.
// SPDX-License-Identifier: Apache-2.0
// API Version 1 - Data Transfer Objects
// These DTOs must match Python FastAPI response structures exactly for backward compatibility
use serde::{Deserialize, Serialize};
/// Health check response (must match Python FastAPI format exactly)
#[derive(Clone, Debug, Serialize, Deserialize, utoipa::ToSchema)]
pub struct HealthCheckResponseV1 {
/// Overall system status
pub status: String,
/// Is the brain ready to process data?
pub brain_readiness: bool,
/// Is the burst engine running?
pub burst_engine: bool,
/// Total number of neurons
pub neuron_count: usize,
/// Total number of synapses
/// TODO: Get from NPU when available
pub synapse_count: usize,
/// Number of cortical areas
pub cortical_area_count: usize,
/// Is the genome valid?
/// TODO: Get from genome validator
pub genome_validity: bool,
/// Is InfluxDB available?
/// TODO: Get from analytics service
pub influxdb_availability: bool,
/// Path to connectome file
/// TODO: Get from state manager
pub connectome_path: String,
/// Genome last modified timestamp
/// TODO: Get from genome service
pub genome_timestamp: String,
/// Change tracking state
/// TODO: Get from state manager
pub change_state: String,
/// Are changes saved externally?
/// TODO: Get from state manager
pub changes_saved_externally: bool,
}
/// Readiness check response
#[derive(Clone, Debug, Serialize, Deserialize, utoipa::ToSchema)]
pub struct ReadinessCheckResponseV1 {
/// Is the system ready?
pub ready: bool,
/// Component readiness details
pub components: ComponentReadiness,
}
/// Component readiness status
#[derive(Clone, Debug, Serialize, Deserialize, utoipa::ToSchema)]
pub struct ComponentReadiness {
/// API server ready
pub api: bool,
/// Burst engine ready
pub burst_engine: bool,
/// State manager ready
pub state_manager: bool,
/// Connectome loaded
pub connectome: bool,
}