1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Declare modules
/// Stable PromQL-like query surface (label matchers =, !=, =~, !~) for Grafana compatibility.
/// gRPC (Tonic) API for ingest, query, and administration.
/// HTTP ops endpoints (liveness/readiness) for hyper.
/// Prometheus Remote Write ingest: decode Snappy-compressed WriteRequest and map to DbCore inserts.
/// Prometheus HTTP API v1 (query, query_range, labels, label values, series) for Grafana compatibility.
/// Generated Prometheus prompb types (WriteRequest, TimeSeries, Sample, Label).
/// Configuration options for the database core.
pub use crateDbConfig;
/// Main entry point for interacting with the time-series database core.
pub use crateDbCore;
/// Error type for database operations.
pub use crateDbError;
/// Snapshot manager for point-in-time backups and fast recovery.
pub use crateSnapshotter;
/// Write-Ahead Log for durability and recovery.
pub use crateWriteAheadLog;
/// Structured event hook for observability.
pub use crate;
/// Represents a single time-series data point.
pub use crateDataPoint;
/// Type alias for a set of tags (key-value pairs) associated with a data point.
pub use crateTagSet;
/// Type alias for a timestamp (nanoseconds since epoch).
pub use crateTimestamp;
/// Type alias for a value in a time series (f64).
pub use crateValue;
// Default flush interval if not specified
use Duration;
/// The default interval between automatic buffer flushes (1 second).
pub const DEFAULT_FLUSH_INTERVAL: Duration = from_secs;