encodeHttpBatch
function encodeHttpBatch(batch, format?): string;Defined in: src/sinks/http.ts:36
Serialize a batch for httpSink.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
batch |
StreamBatch |
undefined |
format? |
"json" | "ndjson" |
"json" |
Returns
Section titled “Returns”string