PHP 클래스 InfluxDb\Driver\Guzzle

상속: implements InfluxDb\DriverInterface, implements InfluxDb\Driver\AllowsQueryInterface, implements InfluxDb\Driver\AllowsWriteInterface
파일 보기 프로젝트 열기: influxdb/influxdb-php

공개 메소드들

메소드 설명
__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