Struct windowed_stats::experimental::series::SamplingProfile
source · pub struct SamplingProfile(/* private fields */);
Expand description
One or more cooperative SamplingInterval
s.
Implementations§
source§impl SamplingProfile
impl SamplingProfile
sourcepub fn highly_granular() -> Self
pub fn highly_granular() -> Self
Constructs a highly granular sampling profile with high fidelity.
The minimum granularity is 10s and the maximum durability is 20m.
sourcepub fn balanced() -> Self
pub fn balanced() -> Self
Constructs a sampling profile with fidelity and durability that is applicable to most metrics.
sourcepub fn granularity(&self) -> Duration
pub fn granularity(&self) -> Duration
Gets the minimum granularity of the profile.
sourcepub fn durability(&self) -> Duration
pub fn durability(&self) -> Duration
Gets the maximum durability of the profile.
Trait Implementations§
source§impl Clone for SamplingProfile
impl Clone for SamplingProfile
source§fn clone(&self) -> SamplingProfile
fn clone(&self) -> SamplingProfile
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 SamplingProfile
impl Debug for SamplingProfile
source§impl Default for SamplingProfile
impl Default for SamplingProfile
source§impl Display for SamplingProfile
impl Display for SamplingProfile
source§impl From<SamplingInterval> for SamplingProfile
impl From<SamplingInterval> for SamplingProfile
source§fn from(interval: SamplingInterval) -> Self
fn from(interval: SamplingInterval) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SamplingProfile
impl RefUnwindSafe for SamplingProfile
impl Send for SamplingProfile
impl Sync for SamplingProfile
impl Unpin for SamplingProfile
impl UnwindSafe for SamplingProfile
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)