public function writePoints(array $points, $precision = self::PRECISION_NANOSECONDS, $retentionPolicy = null)
    {
        $payload = array_map(
            function (Point $point) {
                return (string) $point;
            },
            $points
        );

        return $this->writePayload($payload, $precision, $retentionPolicy);
    }
public function writePoints(array $points, $precision = self::PRECISION_NANOSECONDS, $retentionPolicy = null)
    {
        $payload = array_map(
            function (Point $point) {
                return (string) $point;
            },
            $points
        );

        return $this->writePayload($payload, $precision, $retentionPolicy);
    }
public function writePoints ( array $ points , $ precision = self :: PRECISION_NANOSECONDS , $ retentionPolicy = null ) { $ payload = array_map ( function ( Point $ point ) { return ( string ) $ point ; } , $ points ) ; return $ this -> writePayload ( $ payload , $ precision , $ retentionPolicy ) ; }
Write points into InfluxDB using the current driver. This is the recommended method for inserting
data into InfluxDB.

@param  Point[]     $points           Array of Point objects
@param  string      $precision        The timestamp precision (defaults to nanoseconds).
@param  string|null $retentionPolicy  Specifies an explicit retention policy to use when writing all points. If
not set, the default retention period will be used. This is only
applicable for the Guzzle driver. The UDP driver utilizes the endpoint
configuration defined in the server's influxdb configuration file.
@return bool
@throws \InfluxDB\Exception
Write points into InfluxDB using the current driver . This is the recommended method for inserting data into InfluxDB .