mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Change name of Udp adapter in UdpAdapter, add readme.md
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# InfluxDB PHP SDK
|
||||
Send message to InfluxDB.
|
||||
|
||||
```php
|
||||
$client = new \InfluxDB\Client();
|
||||
$client->setAdapter(new \InfluxDB\Adapter\UdpAdapter());
|
||||
$client->mark("search", [
|
||||
"query" => "php"
|
||||
]);
|
||||
```
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace spec\InfluxDB\Adapter;
|
||||
use PhpSpec\ObjectBehavior;
|
||||
use Prophecy\Argument;
|
||||
|
||||
class UdpSpec extends ObjectBehavior
|
||||
class UdpAdapterSpec extends ObjectBehavior
|
||||
{
|
||||
function let()
|
||||
{
|
||||
@@ -14,7 +14,7 @@ class UdpSpec extends ObjectBehavior
|
||||
|
||||
function it_is_initializable()
|
||||
{
|
||||
$this->shouldHaveType('InfluxDB\Adapter\Udp');
|
||||
$this->shouldHaveType('InfluxDB\Adapter\UdpAdapter');
|
||||
}
|
||||
|
||||
function it_should_implement_adapter_interface()
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace InfluxDB\Adapter;
|
||||
|
||||
class Udp implements AdapterInterface
|
||||
class UdpAdapter implements AdapterInterface
|
||||
{
|
||||
private $host;
|
||||
private $port;
|
||||
Reference in New Issue
Block a user