PHP Class InfluxDb\Driver\Guzzle

Inheritance: implements InfluxDb\DriverInterface, implements InfluxDb\Driver\AllowsQueryInterface, implements InfluxDb\Driver\AllowsWriteInterface
Afficher le fichier Open project: influxdb/influxdb-php

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
getRequestParameters ( null $data = null ) : array

Method Details

__construct() public méthode

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

getParameters() public méthode

public getParameters ( ) : array
Résultat array

getRequestParameters() protected méthode

protected getRequestParameters ( null $data = null ) : array
$data null
Résultat array

isSuccess() public méthode

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

query() public méthode

public query ( ) : InfluxDB\ResultSet
Résultat InfluxDB\ResultSet

setParameters() public méthode

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
Résultat mixed

write() public méthode

Send the data
public write ( $data = null ) : mixed
$data
Résultat mixed