pub struct ControllerStatus {
pub global_metrics: GlobalControllerMetrics,
pub inputs: Vec<InputEndpointStatus>,
pub outputs: Vec<OutputEndpointStatus>,
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": {
"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"
}
},
"suspend_error": {
"allOf": [
{
"$ref": "#/components/schemas/SuspendError"
}
]
}
}
}Fields§
§global_metrics: GlobalControllerMetrics§inputs: Vec<InputEndpointStatus>Input endpoint configs and metrics.
outputs: Vec<OutputEndpointStatus>Output endpoint configs and metrics.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerStatus
impl Debug for ControllerStatus
Source§impl<'de> Deserialize<'de> for ControllerStatus
impl<'de> Deserialize<'de> for ControllerStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ControllerStatus> for ControllerStatus
impl From<&ControllerStatus> for ControllerStatus
Source§fn from(value: &ControllerStatus) -> Self
fn from(value: &ControllerStatus) -> Self
Converts to this type from the input type.
Source§impl From<ControllerStatus> for ControllerStatus
impl From<ControllerStatus> for ControllerStatus
Source§fn from(value: ControllerStatus) -> Self
fn from(value: ControllerStatus) -> Self
Converts to this type from the input type.
Source§impl Serialize for ControllerStatus
impl Serialize for ControllerStatus
Source§impl TryFrom<ControllerStatus> for ControllerStatus
impl TryFrom<ControllerStatus> for ControllerStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ControllerStatus) -> Result<Self, ConversionError>
fn try_from(value: ControllerStatus) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ControllerStatus
impl RefUnwindSafe for ControllerStatus
impl Send for ControllerStatus
impl Sync for ControllerStatus
impl Unpin for ControllerStatus
impl UnwindSafe for ControllerStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more