pub struct Average { /* private fields */ }Expand description
Скользящие средние нагрузки за 1, 5 и 15 минут.
Среднее — безразмерное: секунды работы в секунду, то есть среднее число одновременно идущих
отрезков работы. Как средняя нагрузка в UNIX: каждые 5 секунд прирост суммарного времени
делится на период и подмешивается в каждое среднее с коэффициентом exp(-5 / окно).
Implementations§
Source§impl Average
impl Average
Sourcepub fn one_minute(&self) -> f64
pub fn one_minute(&self) -> f64
Среднее за минуту.
Sourcepub fn five_minutes(&self) -> f64
pub fn five_minutes(&self) -> f64
Среднее за 5 минут.
Sourcepub fn fifteen_minutes(&self) -> f64
pub fn fifteen_minutes(&self) -> f64
Среднее за 15 минут.
Trait Implementations§
impl Copy for Average
impl StructuralPartialEq for Average
Auto Trait Implementations§
impl Forget for Average
impl Freeze for Average
impl Move for Average
impl RefUnwindSafe for Average
impl Send for Average
impl Sync for Average
impl Unpin for Average
impl UnsafeUnpin for Average
impl UnwindSafe for Average
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> 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