pub struct ControllerStatus {
pub checkpoint_activity: Option<CheckpointActivity>,
pub global_metrics: GlobalControllerMetrics,
pub host_metrics: Vec<HostMetrics>,
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": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/CheckpointActivity"
}
]
}
]
},
"global_metrics": {
"$ref": "#/components/schemas/GlobalControllerMetrics"
},
"host_metrics": {
"description": "Resource usage of each host in a multihost pipeline, by ordinal.",
"type": "array",
"items": {
"$ref": "#/components/schemas/HostMetrics"
}
},
"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": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/SuspendError"
}
]
}
]
}
}
}Fields§
§checkpoint_activity: Option<CheckpointActivity>§global_metrics: GlobalControllerMetrics§host_metrics: Vec<HostMetrics>Resource usage of each host in a multihost pipeline, by ordinal.
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§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>,
Source§impl From<&ControllerStatus> for ControllerStatus
impl From<&ControllerStatus> for ControllerStatus
Source§fn from(value: &ControllerStatus) -> Self
fn from(value: &ControllerStatus) -> Self
Source§impl From<ControllerStatus> for ControllerStatus
impl From<ControllerStatus> for ControllerStatus
Source§fn from(value: ControllerStatus) -> Self
fn from(value: ControllerStatus) -> Self
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
Source§fn try_from(value: ControllerStatus) -> Result<Self, ConversionError>
fn try_from(value: ControllerStatus) -> Result<Self, ConversionError>
Auto Trait Implementations§
impl Forget for ControllerStatus
impl Freeze for ControllerStatus
impl Move for ControllerStatus
impl RefUnwindSafe for ControllerStatus
impl Send for ControllerStatus
impl Sync for ControllerStatus
impl Unpin for ControllerStatus
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more