pub struct ControllerStatus {
pub checkpoint_activity: Option<CheckpointActivity>,
pub global_metrics: GlobalControllerMetrics,
pub inputs: Vec<InputEndpointStatus>,
pub outputs: Vec<OutputEndpointStatus>,
pub permanent_checkpoint_errors: Option<Vec<PermanentSuspendError>>,
pub suspend_error: Option<SuspendError>,
}Expand description
Complete pipeline statistics returned by the /stats endpoint.
This schema definition matches the serialized JSON structure from
adapters::controller::ControllerStatus. The actual implementation with
atomics and mutexes lives in the adapters crate, which uses ExternalControllerStatus to
register this OpenAPI schema, making it available to pipeline-manager
without requiring a direct dependency on the adapters crate.
JSON schema
{
"description": "Complete pipeline statistics returned by the `/stats` endpoint.\n\nThis schema definition matches the serialized JSON structure from\n`adapters::controller::ControllerStatus`. The actual implementation with\natomics and mutexes lives in the adapters crate, which uses ExternalControllerStatus to\nregister this OpenAPI schema, making it available to pipeline-manager\nwithout requiring a direct dependency on the adapters crate.",
"type": "object",
"required": [
"global_metrics",
"inputs",
"outputs"
],
"properties": {
"checkpoint_activity": {
"allOf": [
{
"$ref": "#/components/schemas/CheckpointActivity"
}
]
},
"global_metrics": {
"$ref": "#/components/schemas/GlobalControllerMetrics"
},
"inputs": {
"description": "Input endpoint configs and metrics.",
"type": "array",
"items": {
"$ref": "#/components/schemas/InputEndpointStatus"
}
},
"outputs": {
"description": "Output endpoint configs and metrics.",
"type": "array",
"items": {
"$ref": "#/components/schemas/OutputEndpointStatus"
}
},
"permanent_checkpoint_errors": {
"description": "If the pipeline fundamentally cannot checkpoint (e.g. storage is not\nconfigured, or an input endpoint does not support suspend), the reasons\nare listed here. Unlike a checkpoint failure, this means *no*\ncheckpoint can succeed until the pipeline configuration changes.",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/PermanentSuspendError"
}
},
"suspend_error": {
"allOf": [
{
"$ref": "#/components/schemas/SuspendError"
}
]
}
}
}Fields§
§checkpoint_activity: Option<CheckpointActivity>§global_metrics: GlobalControllerMetrics§inputs: Vec<InputEndpointStatus>Input endpoint configs and metrics.
outputs: Vec<OutputEndpointStatus>Output endpoint configs and metrics.
permanent_checkpoint_errors: Option<Vec<PermanentSuspendError>>If the pipeline fundamentally cannot checkpoint (e.g. storage is not configured, or an input endpoint does not support suspend), the reasons are listed here. Unlike a checkpoint failure, this means no checkpoint can succeed until the pipeline configuration changes.
suspend_error: Option<SuspendError>Implementations§
Source§impl ControllerStatus
impl ControllerStatus
pub fn builder() -> ControllerStatus
Trait Implementations§
Source§impl Clone for ControllerStatus
impl Clone for ControllerStatus
Source§fn clone(&self) -> ControllerStatus
fn clone(&self) -> ControllerStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more