mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
Minor changes on composer
This commit is contained in:
+4
-1
@@ -1,9 +1,12 @@
|
||||
{
|
||||
"name": "corley/influxdb-sdk",
|
||||
"description": "InfluxDb PHP sdk for send messages",
|
||||
"license": "MIT",
|
||||
"description": "Send your app metrics to InfluxDB",
|
||||
"require-dev": {
|
||||
"phpspec/phpspec": "2.*"
|
||||
},
|
||||
"homepage": "http://www.corley.it/",
|
||||
"keywords": ["influxdb", "udp", "sdk"],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Gianluca Arbezzano",
|
||||
|
||||
@@ -20,7 +20,7 @@ class Client implements ClientInterface
|
||||
public function connect()
|
||||
{
|
||||
return $this->getAdapter()->connect();
|
||||
}
|
||||
}
|
||||
|
||||
public function disconnect()
|
||||
{
|
||||
@@ -29,7 +29,7 @@ class Client implements ClientInterface
|
||||
|
||||
public function mark($name, array $values)
|
||||
{
|
||||
$data =[];
|
||||
$data =[];
|
||||
$data['name'] = $name;
|
||||
$data['columns'] = array_keys($values);
|
||||
$data['points'][] = array_values($values);
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
namespace InfluxDB;
|
||||
|
||||
interface ClientInterface
|
||||
{
|
||||
public function getAdapter();
|
||||
public function setAdapter(Adapter\AdapterInterface $adapter);
|
||||
public function connect();
|
||||
public function disconnect();
|
||||
public function mark($name, array $values);
|
||||
}
|
||||
Reference in New Issue
Block a user