pub struct TimescaleConfig {
pub enabled: bool,
pub chunk_interval: String,
pub compression_policy: String,
}Expand description
TimescaleDB-specific knobs for the production Postgres backend.
When enabled = true the gateway creates audit_events and
metrics as TimescaleDB hypertables on startup and installs the
configured compression policy. The two interval fields are
passed through to TimescaleDB verbatim — they accept any Postgres
INTERVAL literal (e.g. "7 days", "12 hours").
Fields§
§enabled: boolWhether to enable the TimescaleDB extension on the connected
Postgres instance. Setting false falls back to plain Postgres
(no hypertables, no compression policy).
chunk_interval: StringHypertable time-chunk interval. Default: "7 days".
compression_policy: StringAge at which chunks are auto-compressed. Default: "30 days".
Trait Implementations§
Source§impl Clone for TimescaleConfig
impl Clone for TimescaleConfig
Source§fn clone(&self) -> TimescaleConfig
fn clone(&self) -> TimescaleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimescaleConfig
impl Debug for TimescaleConfig
Source§impl Default for TimescaleConfig
impl Default for TimescaleConfig
impl Eq for TimescaleConfig
Source§impl PartialEq for TimescaleConfig
impl PartialEq for TimescaleConfig
Source§fn eq(&self, other: &TimescaleConfig) -> bool
fn eq(&self, other: &TimescaleConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimescaleConfig
Auto Trait Implementations§
impl Freeze for TimescaleConfig
impl RefUnwindSafe for TimescaleConfig
impl Send for TimescaleConfig
impl Sync for TimescaleConfig
impl Unpin for TimescaleConfig
impl UnsafeUnpin for TimescaleConfig
impl UnwindSafe for TimescaleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.