pub struct KubernetesContainerHeartbeatData {
pub cpu: Option<MetricSample>,
pub events: Vec<KubernetesEventSnapshot>,
pub memory: Option<MetricSample>,
pub name: String,
pub namespace: String,
pub pods: Vec<KubernetesPodRuntimeUnitStatus>,
pub replicas: WorkloadReplicaStatus,
pub restarts: Option<i32>,
pub status: WorkloadHeartbeatStatus,
pub workload: Option<KubernetesWorkloadStatus>,
pub workload_kind: KubernetesWorkloadKind,
}Expand description
KubernetesContainerHeartbeatData
JSON schema
{
"type": "object",
"required": [
"events",
"name",
"namespace",
"pods",
"replicas",
"status",
"workloadKind"
],
"properties": {
"cpu": {
"$ref": "#/components/schemas/MetricSample"
},
"events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KubernetesEventSnapshot"
}
},
"memory": {
"$ref": "#/components/schemas/MetricSample"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"pods": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KubernetesPodRuntimeUnitStatus"
}
},
"replicas": {
"$ref": "#/components/schemas/WorkloadReplicaStatus"
},
"restarts": {
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"status": {
"$ref": "#/components/schemas/WorkloadHeartbeatStatus"
},
"workload": {
"$ref": "#/components/schemas/KubernetesWorkloadStatus"
},
"workloadKind": {
"$ref": "#/components/schemas/KubernetesWorkloadKind"
}
}
}Fields§
§cpu: Option<MetricSample>§events: Vec<KubernetesEventSnapshot>§memory: Option<MetricSample>§name: String§namespace: String§pods: Vec<KubernetesPodRuntimeUnitStatus>§replicas: WorkloadReplicaStatus§restarts: Option<i32>§status: WorkloadHeartbeatStatus§workload: Option<KubernetesWorkloadStatus>§workload_kind: KubernetesWorkloadKindImplementations§
Trait Implementations§
Source§impl Clone for KubernetesContainerHeartbeatData
impl Clone for KubernetesContainerHeartbeatData
Source§fn clone(&self) -> KubernetesContainerHeartbeatData
fn clone(&self) -> KubernetesContainerHeartbeatData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for KubernetesContainerHeartbeatData
impl<'de> Deserialize<'de> for KubernetesContainerHeartbeatData
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<&KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
impl From<&KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
Source§fn from(value: &KubernetesContainerHeartbeatData) -> Self
fn from(value: &KubernetesContainerHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
impl From<KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
Source§fn from(value: KubernetesContainerHeartbeatData) -> Self
fn from(value: KubernetesContainerHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl TryFrom<KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
impl TryFrom<KubernetesContainerHeartbeatData> for KubernetesContainerHeartbeatData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: KubernetesContainerHeartbeatData,
) -> Result<Self, ConversionError>
fn try_from( value: KubernetesContainerHeartbeatData, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KubernetesContainerHeartbeatData
impl RefUnwindSafe for KubernetesContainerHeartbeatData
impl Send for KubernetesContainerHeartbeatData
impl Sync for KubernetesContainerHeartbeatData
impl Unpin for KubernetesContainerHeartbeatData
impl UnsafeUnpin for KubernetesContainerHeartbeatData
impl UnwindSafe for KubernetesContainerHeartbeatData
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