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