pub fn component_scale_failed(
claims: Option<&Claims<Component>>,
annotations: &BTreeMap<String, String>,
host_id: impl AsRef<str>,
image_ref: impl AsRef<str>,
component_id: impl AsRef<str>,
max_instances: u32,
error: &Error,
) -> ValueExpand description
Generates an event payload for when component scaling fails
§Arguments
claims- Optional component claimsannotations- Key-value pairs of metadata annotationshost_id- ID of the host where scaling failedimage_ref- Reference to the component imagecomponent_id- Unique identifier for the componentmax_instances- Target number of instances that failed to scaleerror- The error that caused the scaling failure
§Returns
JSON object containing scaling failure details and error information