|
static | generatePayload ($data, string $precision=null, string $bucket=null, string $org=null, int $writeType=null) |
|
◆ 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
-
| $data | string|Point|array to generate payload |
string | null | $precision | the precision used as a key for Batch |
string | null | $bucket | the bucket used as a key for Batch |
string | null | $org | the org used as a key for Batch |
int | null | $writeType | specify type of writes - WriteType::SYNCHRONOUS or WriteType::BATCHING |
- Returns
- BatchItem|string|null
The documentation for this class was generated from the following file:
- src/InfluxDB2/WritePayloadSerializer.php