InfluxDB PHP Client
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
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: