pub struct DatabaseWaste {
pub energy_kwh: f64,
pub waste_kwh: f64,
pub waste_gco2: Option<f64>,
pub region: Option<String>,
pub sql_waste_ratio: f64,
}Expand description
Measured database window energy × the SQL-only waste ratio. Informational, never summed into the report totals.
Fields§
§energy_kwh: f64Window energy of the database cgroup in kWh (CPU share only).
waste_kwh: f64energy_kwh × sql_waste_ratio.
waste_gco2: Option<f64>waste_kwh × declared region intensity × PUE. None without a
declared or known region.
region: Option<String>Operator-declared region of the database host.
sql_waste_ratio: f64avoidable_sql_io_ops / total_sql_io_ops, in [0, 1].
Trait Implementations§
Source§impl Clone for DatabaseWaste
impl Clone for DatabaseWaste
Source§fn clone(&self) -> DatabaseWaste
fn clone(&self) -> DatabaseWaste
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatabaseWaste
impl Debug for DatabaseWaste
Source§impl<'de> Deserialize<'de> for DatabaseWaste
impl<'de> Deserialize<'de> for DatabaseWaste
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
Source§impl PartialEq for DatabaseWaste
impl PartialEq for DatabaseWaste
Source§impl Serialize for DatabaseWaste
impl Serialize for DatabaseWaste
impl StructuralPartialEq for DatabaseWaste
Auto Trait Implementations§
impl Freeze for DatabaseWaste
impl RefUnwindSafe for DatabaseWaste
impl Send for DatabaseWaste
impl Sync for DatabaseWaste
impl Unpin for DatabaseWaste
impl UnsafeUnpin for DatabaseWaste
impl UnwindSafe for DatabaseWaste
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request