Skip to main content

Module sentinel

Module sentinel 

Source
Expand description

Sentinel API streaming (Section 9).

Activation is gated on SENTINEL_API_TOKEN being set in the environment. When the token is absent, SentinelClient::from_env() returns None and no HTTP connections are ever made (T-STR-01).

Re-exports§

pub use run::RunContext;
pub use run::close_run;
pub use run::start_run;
pub use upload::BatchUploader;
pub use upload::samples_to_csv;

Modules§

run
s3
AWS S3 upload via pure-Rust Signature V4 — no AWS SDK dependency.
upload
Background batch upload thread: buffers samples, serializes as CSV, gzip-compresses, and uploads to S3 every 60 seconds (configurable).

Structs§

SentinelClient
A configured HTTP client for the Sentinel API.

Constants§

API_TIMEOUT_SECS 🔒
HTTP timeout for Sentinel API calls (not S3 uploads, which are separate).
DEFAULT_API_BASE 🔒
Default Sentinel API base URL. Override with SENTINEL_API_URL.