pub struct KubernetesWorkerHeartbeatData {
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 trigger_count: i32,
pub workload: Option<KubernetesWorkloadStatus>,
pub workload_kind: KubernetesWorkloadKind,
}Expand description
KubernetesWorkerHeartbeatData
JSON schema
{
"type": "object",
"required": [
"events",
"name",
"namespace",
"pods",
"replicas",
"status",
"triggerCount",
"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"
},
"triggerCount": {
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"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§trigger_count: i32§workload: Option<KubernetesWorkloadStatus>§workload_kind: KubernetesWorkloadKindImplementations§
Trait Implementations§
Source§impl Clone for KubernetesWorkerHeartbeatData
impl Clone for KubernetesWorkerHeartbeatData
Source§fn clone(&self) -> KubernetesWorkerHeartbeatData
fn clone(&self) -> KubernetesWorkerHeartbeatData
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 KubernetesWorkerHeartbeatData
impl<'de> Deserialize<'de> for KubernetesWorkerHeartbeatData
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<&KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
impl From<&KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
Source§fn from(value: &KubernetesWorkerHeartbeatData) -> Self
fn from(value: &KubernetesWorkerHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
impl From<KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
Source§fn from(value: KubernetesWorkerHeartbeatData) -> Self
fn from(value: KubernetesWorkerHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl TryFrom<KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
impl TryFrom<KubernetesWorkerHeartbeatData> for KubernetesWorkerHeartbeatData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: KubernetesWorkerHeartbeatData,
) -> Result<Self, ConversionError>
fn try_from( value: KubernetesWorkerHeartbeatData, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for KubernetesWorkerHeartbeatData
impl RefUnwindSafe for KubernetesWorkerHeartbeatData
impl Send for KubernetesWorkerHeartbeatData
impl Sync for KubernetesWorkerHeartbeatData
impl Unpin for KubernetesWorkerHeartbeatData
impl UnsafeUnpin for KubernetesWorkerHeartbeatData
impl UnwindSafe for KubernetesWorkerHeartbeatData
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