From 1454693d17f8b3af2923f2ae23879f62eddc0e82 Mon Sep 17 00:00:00 2001 From: Eduardo Bizarro Date: Sun, 20 May 2018 19:46:02 -0300 Subject: [PATCH] readme --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index be75cb2..38b3988 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ PowerDataHub\Laraflux\ServiceProvider::class ``` 'aliases' => [ // ... - 'InfluxDB' => PowerDataHub\Laraflux\Facades\InfluxDB::class, + 'Laraflux' => PowerDataHub\Laraflux\Facades\Laraflux::class, ] ``` @@ -56,7 +56,7 @@ php artisan vendor:publish getPoints(); @@ -68,24 +68,24 @@ $points = $result->getPoints(); 'server01', 'region' => 'us-west'], // optional tags ['cpucount' => 10], // optional additional fields time() // Time precision has to be set to seconds! ), - new InfluxDB\Point( + new \InfluxDB\Point( 'test_metric', // name of the measurement null, // the measurement value ['host' => 'server01', 'region' => 'us-west'], // optional tags ['cpucount' => 10], // optional additional fields time() // Time precision has to be set to seconds! ) -); +]; -$result = InfluxDB::writePoints($points, \InfluxDB\Database::PRECISION_SECONDS); +$result = Laraflux::writePoints($points, \InfluxDB\Database::PRECISION_SECONDS); ``` License