InfluxDB PHP Client
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 

Generate payload from provided data.

$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

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