pub struct ScaleAction {
pub resource_id: ResourceId,
pub resource_type: String,
pub direction: ScaleDirection,
pub target_capacity: Option<u32>,
pub scale_factor: Option<f64>,
pub reason: String,
pub confidence: f64,
pub timestamp: Timestamp,
pub metadata: HashMap<String, String>,
}
Expand description
A scaling recommendation from the lighthouse engine
Fields§
§resource_id: ResourceId
Which resource to scale
resource_type: String
Type of resource being scaled
direction: ScaleDirection
Direction to scale
target_capacity: Option<u32>
Specific target (e.g., number of instances)
scale_factor: Option<f64>
Multiplier for scaling (e.g., 1.5x current capacity)
reason: String
Human-readable explanation
confidence: f64
How confident the engine is (0.0 = uncertain, 1.0 = very confident)
timestamp: Timestamp
When this recommendation was generated
metadata: HashMap<String, String>
Optional metadata for the scaling action
Trait Implementations§
Source§impl Clone for ScaleAction
impl Clone for ScaleAction
Source§fn clone(&self) -> ScaleAction
fn clone(&self) -> ScaleAction
Returns a copy of the value. Read more
1.0.0 · 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 ScaleAction
impl Debug for ScaleAction
Source§impl<'de> Deserialize<'de> for ScaleAction
impl<'de> Deserialize<'de> for ScaleAction
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
Auto Trait Implementations§
impl Freeze for ScaleAction
impl RefUnwindSafe for ScaleAction
impl Send for ScaleAction
impl Sync for ScaleAction
impl Unpin for ScaleAction
impl UnwindSafe for ScaleAction
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