InfluxDB PHP Client
All Classes Namespaces Functions Variables Pages
InfluxDB2\WritePayloadSerializer Class Reference

Static Public Member Functions

static generatePayload ($data, ?string $precision=null, ?string $bucket=null, ?string $org=null, ?int $writeType=null)
 

Member Function Documentation

◆ generatePayload()

static InfluxDB2\WritePayloadSerializer::generatePayload ( $data,
?string $precision = null,
?string $bucket = null,
?string $org = null,
?int $writeType = null )
static

Generate payload from provided data.

Parameters
$datastring|Point|array to generate payload
string | null$precisionthe precision used as a key for Batch
string | null$bucketthe bucket used as a key for Batch
string | null$orgthe org used as a key for Batch
int | null$writeTypespecify type of writes - WriteType::SYNCHRONOUS or WriteType::BATCHING
Returns
BatchItem|string|null

The documentation for this class was generated from the following file: