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: AggregatorConfigThe config used by the internal aggregator.
max_name_length: usizeThe length the name of a metric is allowed to be.
Defaults to 200 bytes.
max_tag_key_length: usizeThe length the tag key is allowed to be.
Defaults to 200 bytes.
max_tag_value_length: usizeThe length the tag value is allowed to be.
Defaults to 200 chars.
max_flush_bytes: usizeThe 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 (const: unstable) · 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 UnsafeUnpin 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,
§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