pub struct StatusReport {
pub heartbeats: Vec<ResourceHeartbeat>,
pub state: Map<String, Value>,
pub telemetry: Vec<ReportedTelemetry>,
pub written_at: Option<DateTime<Utc>>,
}Expand description
StatusReport
JSON schema
{
"type": "object",
"required": [
"state"
],
"properties": {
"heartbeats": {
"description": "Resource observations captured by the Operator alongside this state.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ResourceHeartbeat"
}
},
"state": {
"description": "Deployment state as the environment's Operator last recorded it.",
"type": "object",
"additionalProperties": {}
},
"telemetry": {
"description": "Telemetry the Operator buffered, as the OTLP batches it received.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ReportedTelemetry"
}
},
"writtenAt": {
"description": "Site clock time when the report was written. Older clients omit it.",
"type": [
"string",
"null"
],
"format": "date-time"
}
}
}Fields§
§heartbeats: Vec<ResourceHeartbeat>Resource observations captured by the Operator alongside this state.
state: Map<String, Value>Deployment state as the environment’s Operator last recorded it.
telemetry: Vec<ReportedTelemetry>Telemetry the Operator buffered, as the OTLP batches it received.
written_at: Option<DateTime<Utc>>Site clock time when the report was written. Older clients omit it.
Implementations§
Source§impl StatusReport
impl StatusReport
pub fn builder() -> StatusReport
Trait Implementations§
Source§impl Clone for StatusReport
impl Clone for StatusReport
Source§impl Debug for StatusReport
impl Debug for StatusReport
Source§impl<'de> Deserialize<'de> for StatusReport
impl<'de> Deserialize<'de> for StatusReport
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<&StatusReport> for StatusReport
impl From<&StatusReport> for StatusReport
Source§fn from(value: &StatusReport) -> Self
fn from(value: &StatusReport) -> Self
Converts to this type from the input type.
Source§impl From<StatusReport> for StatusReport
impl From<StatusReport> for StatusReport
Source§fn from(value: StatusReport) -> Self
fn from(value: StatusReport) -> Self
Converts to this type from the input type.
Source§impl Serialize for StatusReport
impl Serialize for StatusReport
Source§impl TryFrom<StatusReport> for StatusReport
impl TryFrom<StatusReport> for StatusReport
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StatusReport) -> Result<Self, ConversionError>
fn try_from(value: StatusReport) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StatusReport
impl RefUnwindSafe for StatusReport
impl Send for StatusReport
impl Sync for StatusReport
impl Unpin for StatusReport
impl UnsafeUnpin for StatusReport
impl UnwindSafe for StatusReport
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