TelemetryRetentionState

Struct TelemetryRetentionState 

Source
pub struct TelemetryRetentionState {
Show 50 fields pub policy_version: u32, pub logical_byte_version: u32, pub raw_rows: usize, pub max_raw_rows: usize, pub max_raw_age_seconds: u64, pub raw_logical_bytes: usize, pub max_raw_logical_bytes: usize, pub baseline_rows: usize, pub max_baselines_per_instance: usize, pub max_active_baseline_rows: usize, pub baseline_logical_bytes: usize, pub max_baseline_logical_bytes: usize, pub dimension_rows: usize, pub max_dimensions: usize, pub instance_rows: usize, pub active_instance_rows: usize, pub max_active_instances: usize, pub max_retained_instances: usize, pub retained_label_rows: usize, pub max_retained_labels: usize, pub daily_rows: usize, pub max_daily_rows: usize, pub retained_trend_days: u64, pub label_tombstone_rows: usize, pub max_label_tombstones: usize, pub instance_tombstone_rows: usize, pub max_instance_tombstones: usize, pub pruned_raw_rows: usize, pub pruned_instance_rows: usize, pub evicted_tombstones: usize, pub maintenance_pending: bool, pub prune_batch_rows: usize, pub writes_since_checkpoint: usize, pub checkpoint_write_interval: usize, pub last_checkpoint_epoch: u64, pub oldest_retained_epoch: Option<u64>, pub clock_anomaly: bool, pub spill_cleanup: SpillCleanupState, pub checkpoint_state: TelemetryCheckpointState, pub wal_autocheckpoint_pages: usize, pub freelist_pages: usize, pub page_count: usize, pub page_size: usize, pub journal_mode: String, pub synchronous_mode: String, pub connection_busy_timeout_ms: u64, pub normal_busy_timeout_ms: u64, pub telemetry_busy_timeout_ms: u64, pub statistics_policy: PlannerStatisticsPolicy, pub statistics_state: PlannerStatisticsState,
}
Expand description

Content-free retention and page-lifecycle state.

Fields§

§policy_version: u32

Retention policy format version.

§logical_byte_version: u32

Logical-byte accounting version.

§raw_rows: usize

Retained raw rows.

§max_raw_rows: usize

Maximum retained raw rows.

§max_raw_age_seconds: u64

Maximum retained raw age in seconds.

§raw_logical_bytes: usize

Retained raw logical bytes.

§max_raw_logical_bytes: usize

Maximum retained raw logical bytes.

§baseline_rows: usize

Active baseline rows.

§max_baselines_per_instance: usize

Maximum baselines for one active instance.

§max_active_baseline_rows: usize

Maximum active baseline rows.

§baseline_logical_bytes: usize

Active baseline witness bytes.

§max_baseline_logical_bytes: usize

Maximum active baseline witness bytes.

§dimension_rows: usize

Normalized dimension rows.

§max_dimensions: usize

Maximum normalized dimensions including overflow.

§instance_rows: usize

Retained runtime-instance rows.

§active_instance_rows: usize

Active runtime-instance rows for the selected project.

§max_active_instances: usize

Maximum active runtime instances per project.

§max_retained_instances: usize

Maximum retained runtime-instance rows.

§retained_label_rows: usize

Retained caller-label state rows in the authoritative database.

§max_retained_labels: usize

Maximum retained caller-label state rows in the authoritative database.

§daily_rows: usize

Retained daily aggregate rows.

§max_daily_rows: usize

Maximum retained daily aggregate rows.

§retained_trend_days: u64

Daily trend retention in days.

§label_tombstone_rows: usize

Retained label tombstones.

§max_label_tombstones: usize

Maximum retained label tombstones.

§instance_tombstone_rows: usize

Retained runtime-instance tombstones.

§max_instance_tombstones: usize

Maximum retained runtime-instance tombstones.

§pruned_raw_rows: usize

Lifetime pruned raw rows.

§pruned_instance_rows: usize

Lifetime pruned runtime instances.

§evicted_tombstones: usize

Lifetime evicted tombstones.

§maintenance_pending: bool

Whether more bounded maintenance is pending.

§prune_batch_rows: usize

Fixed maximum rows touched by one maintenance category pass.

§writes_since_checkpoint: usize

Writes accumulated since the last passive checkpoint attempt.

§checkpoint_write_interval: usize

Writes between passive checkpoint attempts.

§last_checkpoint_epoch: u64

Epoch of the most recent checkpoint attempt.

§oldest_retained_epoch: Option<u64>

Oldest retained raw-event epoch, when detail exists.

§clock_anomaly: bool

Whether anomalous wall-clock movement was observed.

§spill_cleanup: SpillCleanupState

Spill cleanup state; always not applicable for the one-database design.

§checkpoint_state: TelemetryCheckpointState

Most recent ProjectAtlas passive-checkpoint state.

§wal_autocheckpoint_pages: usize

Connection-local SQLite automatic-checkpoint threshold in WAL pages.

§freelist_pages: usize

Reusable database pages observed live by the reporting connection.

§page_count: usize

Total database pages observed live by the reporting connection.

§page_size: usize

SQLite database page size in bytes.

§journal_mode: String

Active journal mode reported by SQLite.

§synchronous_mode: String

Active synchronous mode reported by SQLite.

§connection_busy_timeout_ms: u64

Busy timeout observed on the reporting connection in milliseconds.

§normal_busy_timeout_ms: u64

Busy timeout required for ordinary read/write connections in milliseconds.

§telemetry_busy_timeout_ms: u64

Busy timeout required for best-effort telemetry writers in milliseconds.

§statistics_policy: PlannerStatisticsPolicy

Planner-statistics lifecycle policy.

§statistics_state: PlannerStatisticsState

Current planner-statistics availability.

Trait Implementations§

Source§

impl Clone for TelemetryRetentionState

Source§

fn clone(&self) -> TelemetryRetentionState

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TelemetryRetentionState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TelemetryRetentionState

Source§

fn eq(&self, other: &TelemetryRetentionState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TelemetryRetentionState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for TelemetryRetentionState

Source§

impl StructuralPartialEq for TelemetryRetentionState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,