pub enum SandboxHeartbeatData {
Variant0 {
backend: SandboxHeartbeatDataVariant0Backend,
image_identifier: String,
image_state: Option<String>,
status: SandboxHeartbeatStatus,
},
Variant1 {
backend: SandboxHeartbeatDataVariant1Backend,
provisioning_state: Option<String>,
sandbox_group: String,
status: SandboxHeartbeatStatus,
},
Variant2 {
active_sessions: i32,
backend: SandboxHeartbeatDataVariant2Backend,
idle_pods: i32,
namespace: String,
status: SandboxHeartbeatStatus,
},
Variant3 {
active_sessions: i32,
backend: SandboxHeartbeatDataVariant3Backend,
route_serving: bool,
status: SandboxHeartbeatStatus,
},
}Expand description
Content-free telemetry about a sandbox’s sessions.
Never anything from inside a session. A controller reaches only the cloud’s management APIs, and the whole point of the resource is that the control plane cannot see what runs in it.
JSON schema
{
"description": "Content-free telemetry about a sandbox's sessions.\n\nNever anything from inside a session. A controller reaches only the cloud's management APIs,\nand the whole point of the resource is that the control plane cannot see what runs in it.",
"oneOf": [
{
"allOf": [
{
"$ref": "#/components/schemas/AwsMicrovmSandboxHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"awsMicrovm"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/AzureSandboxGroupHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"azureSandboxGroup"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/KubernetesSandboxHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"kubernetesPods"
]
}
}
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/LocalSandboxHeartbeatData"
},
{
"type": "object",
"required": [
"backend"
],
"properties": {
"backend": {
"type": "string",
"enum": [
"local"
]
}
}
}
]
}
]
}Variants§
Variant0
Fields
§
backend: SandboxHeartbeatDataVariant0Backend§
image_state: Option<String>The image’s own lifecycle state, which is where AWS surfaces base-image deprecation.
No session count sits beside it: counting means lambda:ListMicrovms, which authorizes
against no resource type and so cannot be granted without an account-wide reach the
permission sets refuse. A field only an over-broad grant could fill is a field whose
implementer ships AccessDenied into a customer’s account.
§
status: SandboxHeartbeatStatusVariant1
Variant2
Variant3
Fields
§
backend: SandboxHeartbeatDataVariant3Backend§
route_serving: boolWhether the loopback route is serving in this process. False after a manager restart until the next tick rebinds it.
§
status: SandboxHeartbeatStatusTrait Implementations§
Source§impl Clone for SandboxHeartbeatData
impl Clone for SandboxHeartbeatData
Source§fn clone(&self) -> SandboxHeartbeatData
fn clone(&self) -> SandboxHeartbeatData
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 Debug for SandboxHeartbeatData
impl Debug for SandboxHeartbeatData
Source§impl<'de> Deserialize<'de> for SandboxHeartbeatData
impl<'de> Deserialize<'de> for SandboxHeartbeatData
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<&SandboxHeartbeatData> for SandboxHeartbeatData
impl From<&SandboxHeartbeatData> for SandboxHeartbeatData
Source§fn from(value: &SandboxHeartbeatData) -> Self
fn from(value: &SandboxHeartbeatData) -> Self
Converts to this type from the input type.
Source§impl From<SandboxHeartbeatData> for ResourceHeartbeatData
impl From<SandboxHeartbeatData> for ResourceHeartbeatData
Source§fn from(value: SandboxHeartbeatData) -> Self
fn from(value: SandboxHeartbeatData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SandboxHeartbeatData
impl RefUnwindSafe for SandboxHeartbeatData
impl Send for SandboxHeartbeatData
impl Sync for SandboxHeartbeatData
impl Unpin for SandboxHeartbeatData
impl UnsafeUnpin for SandboxHeartbeatData
impl UnwindSafe for SandboxHeartbeatData
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