Property | Type | Description | |
---|---|---|---|
$admin | InfluxDB\Client\Admin | ||
$lastQuery | null | Stores the last query that ran |
Property | Type | Description | |
---|---|---|---|
$baseURI | |||
$driver | InfluxDB\Driver\DriverInterface | ||
$host | string | ||
$options | array | ||
$password | string | ||
$port | integer | ||
$scheme | boolean | ||
$timeout | float | ||
$udpPort | integer | ||
$useUdp | boolean | ||
$username | string | ||
$verifySSL | boolean |
Method | Description | |
---|---|---|
__construct ( string $host, integer $port = 8086, string $username = '', string $password = '', boolean $ssl = false, boolean $verifySSL = false, integer $timeout ) | ||
fromDSN ( string $dsn, integer $timeout, boolean $verifySSL = false ) : |
Build the client from a dsn Examples: | |
getBaseURI ( ) : mixed | ||
getDriver ( ) : InfluxDB\Driver\DriverInterface | InfluxDB\Driver\QueryDriverInterface | ||
getHost ( ) : string | ||
getLastQuery ( ) : null | string | Returns the last executed query | |
getTimeout ( ) : float | ||
listDatabases ( ) | List all the databases | |
listUsers ( ) : array | List all the users | |
query ( string $database, string $query, array $parameters = [] ) : influxdb\ResultSet | Query influxDB | |
selectDB ( string $name ) : |
Use the given database | |
setDriver ( InfluxDB\Driver\DriverInterface $driver ) | ||
write ( array $parameters, string | array $payload ) : boolean | Write data |
Method | Description | |
---|---|---|
pointsToArray ( array $points ) : array |
public getDriver ( ) : InfluxDB\Driver\DriverInterface | InfluxDB\Driver\QueryDriverInterface | ||
return | InfluxDB\Driver\DriverInterface | InfluxDB\Driver\QueryDriverInterface |
public getLastQuery ( ) : null | string | ||
return | null | string |
protected pointsToArray ( array $points ) : array | ||
$points | array | |
return | array |
public setDriver ( InfluxDB\Driver\DriverInterface $driver ) | ||
$driver | InfluxDB\Driver\DriverInterface |
protected DriverInterface,InfluxDB\Driver $driver | ||
return | InfluxDB\Driver\DriverInterface |
public static null $lastQuery | ||
return | null |