mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Updated docs (time precision)
This commit is contained in:
@@ -53,6 +53,18 @@ $client = new Client();
|
||||
$client->setAdapter($adapter);
|
||||
```
|
||||
|
||||
### Time Precision write/read queries
|
||||
|
||||
You can set the `time_precision` for query query
|
||||
|
||||
```php
|
||||
$client->mark("app.search", $points, "s"); //points contains "time" that is in seconds
|
||||
```
|
||||
|
||||
```php
|
||||
$client->query("select * from app.search", "s"); // retrieve points using seconds for time column
|
||||
```
|
||||
|
||||
### Query InfluxDB
|
||||
|
||||
You can query the time series database using the query method.
|
||||
|
||||
Reference in New Issue
Block a user