diff options
Diffstat (limited to 'vendor/gipfl/influxdb/src/InfluxDbConnection.php')
-rw-r--r-- | vendor/gipfl/influxdb/src/InfluxDbConnection.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/gipfl/influxdb/src/InfluxDbConnection.php b/vendor/gipfl/influxdb/src/InfluxDbConnection.php new file mode 100644 index 0000000..d20944a --- /dev/null +++ b/vendor/gipfl/influxdb/src/InfluxDbConnection.php @@ -0,0 +1,24 @@ +<?php + +namespace gipfl\InfluxDb; + +interface InfluxDbConnection +{ + public function ping($verbose = false); + + public function getVersion(); + + public function listDatabases(); + + public function createDatabase($name); + + public function getHealth(); + + /** + * @param string $dbName + * @param DataPoint[] $dataPoints + * @param string|null $precision ns,u,ms,s,m,h + * @return \React\Promise\Promise + */ + public function writeDataPoints($dbName, array $dataPoints, $precision = null); +} |