AnyEvent-InfluxDB
view release on metacpan or search on metacpan
The required "on_success" code reference is executed if request was
successful, otherwise executes the required "on_error" code reference.
The "data" can be specified as single scalar value or hash reference
with required keys "measurement" and "fields" and optional "tags" and
"time". Both can be also mixed and matched within an array reference.
Scalar values are expected to be formatted using InfluxDB line protocol.
All special characters need to be escaped. In that case you might want
to use InfluxDB::LineProtocol:
use InfluxDB::LineProtocol qw(dataline);
...
$db->write(
database => 'mydb',
precision => 'n',
data => [
lib/AnyEvent/InfluxDB.pm view on Meta::CPAN
The required C<on_success> code reference is executed if request was successful,
otherwise executes the required C<on_error> code reference.
The C<data> can be specified as single scalar value or hash reference with
required keys C<measurement> and C<fields> and optional C<tags> and C<time>.
Both can be also mixed and matched within an array reference.
Scalar values are expected to be formatted using InfluxDB line protocol.
All special characters need to be escaped. In that case you might want to use
L<InfluxDB::LineProtocol>:
use InfluxDB::LineProtocol qw(dataline);
...
$db->write(
database => 'mydb',
precision => 'n',
data => [
( run in 0.256 second using v1.01-cache-2.11-cpan-c21f80fb71c )