pub struct AggregatorServiceConfig {
pub aggregator: AggregatorConfig,
pub max_name_length: usize,
pub max_tag_key_length: usize,
pub max_tag_value_length: usize,
pub max_flush_bytes: usize,
}
Expand description
Parameters used for metric aggregation.
Fields§
§aggregator: AggregatorConfig
The config used by the internal aggregator.
max_name_length: usize
The length the name of a metric is allowed to be.
Defaults to 200
bytes.
max_tag_key_length: usize
The length the tag key is allowed to be.
Defaults to 200
bytes.
max_tag_value_length: usize
The length the tag value is allowed to be.
Defaults to 200
chars.
max_flush_bytes: usize
The approximate maximum number of bytes submitted within one flush cycle.
This controls how big flushed batches of buckets get, depending on the number of buckets, the cumulative length of their keys, and the number of raw values. Since final serialization adds some additional overhead, this number is approximate and some safety margin should be left to hard limits.
Implementations§
source§impl AggregatorServiceConfig
impl AggregatorServiceConfig
sourcepub fn timestamp_range(&self) -> Range<UnixTimestamp>
pub fn timestamp_range(&self) -> Range<UnixTimestamp>
Returns the valid range for metrics timestamps.
Metrics or buckets outside of this range should be discarded.
Trait Implementations§
source§impl Clone for AggregatorServiceConfig
impl Clone for AggregatorServiceConfig
source§fn clone(&self) -> AggregatorServiceConfig
fn clone(&self) -> AggregatorServiceConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AggregatorServiceConfig
impl Debug for AggregatorServiceConfig
source§impl Default for AggregatorServiceConfig
impl Default for AggregatorServiceConfig
source§impl<'de> Deserialize<'de> for AggregatorServiceConfigwhere
AggregatorServiceConfig: Default,
impl<'de> Deserialize<'de> for AggregatorServiceConfigwhere
AggregatorServiceConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for AggregatorServiceConfig
impl RefUnwindSafe for AggregatorServiceConfig
impl Send for AggregatorServiceConfig
impl Sync for AggregatorServiceConfig
impl Unpin for AggregatorServiceConfig
impl UnwindSafe for AggregatorServiceConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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 more