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_CONNECT_TIMEOUT_SECS 🔒
Per-phase timeouts for Sentinel API calls (no global timeout to avoid ureq DNS helper threads).
API_TIMEOUT_SECS 🔒
Receive-response timeout for Sentinel API calls.
DEFAULT_API_BASE 🔒
Default Sentinel API base URL. Override with SENTINEL_API_URL.
UPLOAD_CONNECT_TIMEOUT_SECS 🔒
Per-phase timeouts for the background S3 upload agent (no global timeout).
UPLOAD_RECV_RESPONSE_TIMEOUT_SECS 🔒