pub struct KubernetesWorkerHeartbeatData {
pub status: WorkloadHeartbeatStatus,
pub namespace: String,
pub name: String,
pub workload_kind: KubernetesWorkloadKind,
pub replicas: WorkloadReplicaStatus,
pub restarts: Option<u32>,
pub cpu: Option<MetricSample>,
pub memory: Option<MetricSample>,
pub workload: Option<KubernetesWorkloadStatus>,
pub pods: Vec<KubernetesPodRuntimeUnitStatus>,
pub trigger_count: u32,
pub events: Vec<KubernetesEventSnapshot>,
}Fields§
§status: WorkloadHeartbeatStatus§namespace: String§name: String§workload_kind: KubernetesWorkloadKind§replicas: WorkloadReplicaStatus§restarts: Option<u32>§cpu: Option<MetricSample>§memory: Option<MetricSample>§workload: Option<KubernetesWorkloadStatus>§pods: Vec<KubernetesPodRuntimeUnitStatus>§trigger_count: u32§events: Vec<KubernetesEventSnapshot>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 PartialEq for KubernetesWorkerHeartbeatData
impl PartialEq for KubernetesWorkerHeartbeatData
Source§fn eq(&self, other: &KubernetesWorkerHeartbeatData) -> bool
fn eq(&self, other: &KubernetesWorkerHeartbeatData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KubernetesWorkerHeartbeatData
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