pub struct LighthouseConfig {
pub evaluation_interval_seconds: u64,
pub resource_configs: HashMap<String, ResourceConfig>,
pub global_settings: HashMap<String, String>,
pub enable_logging: bool,
}
Expand description
Main configuration for the lighthouse engine
Fields§
§evaluation_interval_seconds: u64
How often to evaluate scaling decisions (seconds)
resource_configs: HashMap<String, ResourceConfig>
Configuration for each resource type
global_settings: HashMap<String, String>
Global settings that apply to all resources
enable_logging: bool
Whether to log scaling decisions
Implementations§
Source§impl LighthouseConfig
Builder pattern for easy configuration creation
impl LighthouseConfig
Builder pattern for easy configuration creation
pub fn builder() -> LighthouseConfigBuilder
Trait Implementations§
Source§impl Clone for LighthouseConfig
impl Clone for LighthouseConfig
Source§fn clone(&self) -> LighthouseConfig
fn clone(&self) -> LighthouseConfig
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 LighthouseConfig
impl Debug for LighthouseConfig
Source§impl Default for LighthouseConfig
impl Default for LighthouseConfig
Source§impl<'de> Deserialize<'de> for LighthouseConfig
impl<'de> Deserialize<'de> for LighthouseConfig
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 LighthouseConfig
impl RefUnwindSafe for LighthouseConfig
impl Send for LighthouseConfig
impl Sync for LighthouseConfig
impl Unpin for LighthouseConfig
impl UnwindSafe for LighthouseConfig
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