Struct unleash_edge::metrics::client_metrics::MetricsCache
source · pub struct MetricsCache { /* private fields */ }
Implementations§
source§impl MetricsCache
impl MetricsCache
pub fn get_metrics_by_environment(&self) -> HashMap<String, MetricsBatch>
pub fn get_appropriately_sized_env_batches( &self, batch: &MetricsBatch ) -> Vec<MetricsBatch>
sourcepub fn get_appropriately_sized_batches(&self) -> Vec<MetricsBatch>
pub fn get_appropriately_sized_batches(&self) -> Vec<MetricsBatch>
This is a destructive call. We’ll remove all metrics that is due for posting Called from crate::http::background_send_metrics::send_metrics_task which will reinsert on 5xx server failures, but leave 413 and 400 failures on the floor
pub fn reinsert_batch(&self, batch: MetricsBatch)
pub fn sink_bulk_metrics( &self, metrics: BatchMetricsRequestBody, connect_via: &ConnectVia )
pub fn reset_metrics(&self)
pub fn register_application(&self, application: ClientApplication)
pub fn sink_metrics(&self, metrics: &[ClientMetricsEnv])
Trait Implementations§
source§impl Debug for MetricsCache
impl Debug for MetricsCache
source§impl Default for MetricsCache
impl Default for MetricsCache
source§fn default() -> MetricsCache
fn default() -> MetricsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricsCache
impl !RefUnwindSafe for MetricsCache
impl Send for MetricsCache
impl Sync for MetricsCache
impl Unpin for MetricsCache
impl UnwindSafe for MetricsCache
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