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>,
) -> ValueExpand description
Generates an event payload for when a component is scaled
§Arguments
claims- Optional component claimsannotations- Key-value pairs of metadata annotationshost_id- ID of the host where scaling occurredmax_instances- Maximum number of instances to scale toimage_ref- Reference to the component imagecomponent_id- Unique identifier for the component
§Returns
JSON object containing scaling details and component metadata