Skip to main content

build_logs_payload

Function build_logs_payload 

Source
fn build_logs_payload(entries: &[Value], now_unix: u64) -> Value
Expand description

Builds the SLS PutLogs JSON payload. Each entry becomes a log object of string values (non-string fields JSON-encoded) plus a __time__ field. Pure and network-free for testing.