Skip to main content

Module state

Module state 

Source
Expand description

Account-partitioned, serializable state for Amazon Timestream.

Everything a Timestream caller can create lives here: databases, tables, the ingested data points (a bounded in-memory buffer per table so Query can read them back), scheduled queries, batch-load tasks, the per-account query settings, and in-flight query ids (so CancelQuery resolves). Config blobs (RetentionProperties, MagneticStoreWriteProperties, Schema, a scheduled query’s schedule/notification/target config) are stored as their already-output-valid wire JSON so a Describe* echoes exactly what its Create* persisted.

Databases are keyed by name; tables and their record buffers by "{database}\u{1}{table}" (see crate::shared::table_key); scheduled queries and batch-load tasks by their minted id/ARN. Tags live in an ARN-keyed side map so ListTagsForResource has a single source of truth.

Structs§

AccountSettings
Per-account query settings.
BatchLoadTask
A batch-load task.
Database
A Timestream database.
ScheduledQuery
A scheduled query.
StoredRecord
One ingested Timestream data point, normalized to nanoseconds so the query engine can time-filter and format it uniformly regardless of the write-time TimeUnit.
Table
A Timestream table.
TimestreamData
Per-account Amazon Timestream state.
TimestreamSnapshot

Constants§

MAX_RECORDS_PER_TABLE
The maximum number of ingested points retained per table. Timestream itself keeps data by retention window; fakecloud keeps a bounded ring so the process footprint stays flat under sustained WriteRecords.
TIMESTREAM_SNAPSHOT_SCHEMA_VERSION

Type Aliases§

SharedTimestreamState