PHP Класс InfluxDb\Driver\Guzzle

Наследование: implements InfluxDb\DriverInterface, implements InfluxDb\Driver\AllowsQueryInterface, implements InfluxDb\Driver\AllowsWriteInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
getRequestParameters ( null $data = null ) : array

Описание методов

__construct() публичный Метод

Set the config for this driver
public __construct ( Client $client ) : mixed
$client GuzzleHttp\Client
Результат mixed

getParameters() публичный Метод

public getParameters ( ) : array
Результат array

getRequestParameters() защищенный Метод

protected getRequestParameters ( null $data = null ) : array
$data null
Результат array

isSuccess() публичный Метод

Should return if sending the data was successful
public isSuccess ( ) : boolean
Результат boolean

query() публичный Метод

public query ( ) : InfluxDB\ResultSet
Результат InfluxDB\ResultSet

setParameters() публичный Метод

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
Результат mixed

write() публичный Метод

Send the data
public write ( $data = null ) : mixed
$data
Результат mixed