pub struct ResourceComparison {
pub pod_name: String,
pub namespace: String,
pub container_name: String,
pub owner_kind: Option<String>,
pub owner_name: Option<String>,
pub cpu_request: Option<u64>,
pub cpu_actual: u64,
pub cpu_waste_pct: f32,
pub memory_request: Option<u64>,
pub memory_actual: u64,
pub memory_waste_pct: f32,
}Expand description
Comparison between requested and actual resource usage.
Fields§
§pod_name: StringPod name
namespace: StringNamespace
container_name: StringContainer name
owner_kind: Option<String>Owner kind (Deployment, StatefulSet, etc.)
owner_name: Option<String>Owner name
cpu_request: Option<u64>CPU request in millicores
cpu_actual: u64Actual CPU usage in millicores
cpu_waste_pct: f32CPU waste percentage (negative if under-provisioned)
memory_request: Option<u64>Memory request in bytes
memory_actual: u64Actual memory usage in bytes
memory_waste_pct: f32Memory waste percentage (negative if under-provisioned)
Trait Implementations§
Source§impl Clone for ResourceComparison
impl Clone for ResourceComparison
Source§fn clone(&self) -> ResourceComparison
fn clone(&self) -> ResourceComparison
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 moreSource§impl Debug for ResourceComparison
impl Debug for ResourceComparison
Source§impl<'de> Deserialize<'de> for ResourceComparison
impl<'de> Deserialize<'de> for ResourceComparison
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 ResourceComparison
impl RefUnwindSafe for ResourceComparison
impl Send for ResourceComparison
impl Sync for ResourceComparison
impl Unpin for ResourceComparison
impl UnwindSafe for ResourceComparison
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.