PHP Class InfluxDb\Driver\Guzzle

Inheritance: implements InfluxDb\DriverInterface, implements InfluxDb\Driver\AllowsQueryInterface, implements InfluxDb\Driver\AllowsWriteInterface
Datei anzeigen Open project: influxdb/influxdb-php

Public Methods

Method Description
__construct ( Client $client ) : mixed Set the config for this driver
getParameters ( ) : array
isSuccess ( ) : boolean Should return if sending the data was successful
query ( ) : InfluxDB\ResultSet
setParameters ( array $parameters ) : mixed Called by the client write() method, will pass an array of required parameters such as db name
write ( $data = null ) : mixed Send the data

Protected Methods

Method Description
getRequestParameters ( null $data = null ) : array

Method Details

__construct() public method

Set the config for this driver
public __construct ( Client $client ) : mixed
$client GuzzleHttp\Client
return mixed

getParameters() public method

public getParameters ( ) : array
return array

getRequestParameters() protected method

protected getRequestParameters ( null $data = null ) : array
$data null
return array

isSuccess() public method

Should return if sending the data was successful
public isSuccess ( ) : boolean
return boolean

query() public method

public query ( ) : InfluxDB\ResultSet
return InfluxDB\ResultSet

setParameters() public method

will contain the following parameters: [ 'database' => 'name of the database', 'url' => 'URL to the resource', 'method' => 'HTTP method used' ]
public setParameters ( array $parameters ) : mixed
$parameters array
return mixed

write() public method

Send the data
public write ( $data = null ) : mixed
$data
return mixed