component_scaled

Function component_scaled 

Source
pub fn component_scaled(
    claims: Option<&Claims<Component>>,
    annotations: &BTreeMap<String, String>,
    host_id: impl AsRef<str>,
    max_instances: impl Into<usize>,
    image_ref: impl AsRef<str>,
    component_id: impl AsRef<str>,
) -> Value
Expand description

Generates an event payload for when a component is scaled

§Arguments

  • claims - Optional component claims
  • annotations - Key-value pairs of metadata annotations
  • host_id - ID of the host where scaling occurred
  • max_instances - Maximum number of instances to scale to
  • image_ref - Reference to the component image
  • component_id - Unique identifier for the component

§Returns

JSON object containing scaling details and component metadata