MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / ingest_metric

Method ingest_metric

nodedb/src/engine/timeseries/manager.rs:127–129  ·  view source on GitHub ↗

Ingest a metric sample. If the active memtable signals flush needed, the caller should call `try_flush()` to rotate and flush the frozen memtable.

(&mut self, series_id: SeriesId, sample: MetricSample)

Source from the content-addressed store, hash-verified

125 /// If the active memtable signals flush needed, the caller should call
126 /// `try_flush()` to rotate and flush the frozen memtable.
127 pub fn ingest_metric(&mut self, series_id: SeriesId, sample: MetricSample) -> IngestResult {
128 self.do_ingest(|mt| mt.ingest_metric(series_id, sample))
129 }
130
131 /// Ingest a log entry.
132 pub fn ingest_log(&mut self, series_id: SeriesId, entry: LogEntry) -> IngestResult {

Calls 1

do_ingestMethod · 0.80