component_scale_failed

Function component_scale_failed 

Source
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,
) -> Value
Expand description

Generates an event payload for when component scaling fails

§Arguments

  • claims - Optional component claims
  • annotations - Key-value pairs of metadata annotations
  • host_id - ID of the host where scaling failed
  • image_ref - Reference to the component image
  • component_id - Unique identifier for the component
  • max_instances - Target number of instances that failed to scale
  • error - The error that caused the scaling failure

§Returns

JSON object containing scaling failure details and error information