pub struct KubernetesDaemonHeartbeatData {
pub command_supported: bool,
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>,
}Expand description
KubernetesDaemonHeartbeatData
JSON schema
{
"type": "object",
"required": [
"commandSupported",
"events",
"name",
"namespace",
"pods",
"replicas",
"status"
],
"properties": {
"commandSupported": {
"type": "boolean"
},
"cpu": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/MetricSample"
}
]
}
]
},
"events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/KubernetesEventSnapshot"
}
},
"memory": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$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": {
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/KubernetesWorkloadStatus"
}
]
}
]
}
}
}Fields§
§command_supported: bool§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>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KubernetesDaemonHeartbeatData
impl<'de> Deserialize<'de> for KubernetesDaemonHeartbeatData
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<&KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
impl From<&KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
Source§fn from(value: &KubernetesDaemonHeartbeatData) -> Self
fn from(value: &KubernetesDaemonHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
impl From<KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
Source§fn from(value: KubernetesDaemonHeartbeatData) -> Self
fn from(value: KubernetesDaemonHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl TryFrom<KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
impl TryFrom<KubernetesDaemonHeartbeatData> for KubernetesDaemonHeartbeatData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: KubernetesDaemonHeartbeatData,
) -> Result<Self, ConversionError>
fn try_from( value: KubernetesDaemonHeartbeatData, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for KubernetesDaemonHeartbeatData
impl Freeze for KubernetesDaemonHeartbeatData
impl Move for KubernetesDaemonHeartbeatData
impl RefUnwindSafe for KubernetesDaemonHeartbeatData
impl Send for KubernetesDaemonHeartbeatData
impl Sync for KubernetesDaemonHeartbeatData
impl Unpin for KubernetesDaemonHeartbeatData
impl UnsafeUnpin for KubernetesDaemonHeartbeatData
impl UnwindSafe for KubernetesDaemonHeartbeatData
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