pub struct WorkloadProfile {
pub dimensions: Vec<DimensionScore>,
pub total_duration_us: u64,
pub total_lease_cost: u64,
}Expand description
Workload sensitivity profile inferred from observed behavior.
Fields§
§dimensions: Vec<DimensionScore>Per-dimension scores.
total_duration_us: u64Total recording duration in microseconds.
total_lease_cost: u64Total lease cost (byte-seconds).
Implementations§
Source§impl WorkloadProfile
impl WorkloadProfile
Sourcepub fn level_for(&self, rt: ResourceType) -> SensitivityLevel
pub fn level_for(&self, rt: ResourceType) -> SensitivityLevel
Get the sensitivity level for a specific resource type.
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
Render a text summary of the profile.
Trait Implementations§
Source§impl Clone for WorkloadProfile
impl Clone for WorkloadProfile
Source§fn clone(&self) -> WorkloadProfile
fn clone(&self) -> WorkloadProfile
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WorkloadProfile
impl RefUnwindSafe for WorkloadProfile
impl Send for WorkloadProfile
impl Sync for WorkloadProfile
impl Unpin for WorkloadProfile
impl UnwindSafe for WorkloadProfile
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