Etcd::Stats - etcd stats API
version 0.004
use Etcd; my $etcd = Etcd->new; my $leader_stats = $etcd->stats("leader"); my $store_stats = $etcd->stats("store"); my $self_stats = $etcd->stats("self");
This module provides access to etcd's stats API.
stats
my $leader_stats = $etcd->stats("leader"); my $store_stats = $etcd->stats("store"); my $self_stats = $etcd->stats("self");
Returns a hashref of values for the requested statistics type. The contents of the hash is described in the API documentation. See "SEE ALSO" in Etcd for further reading.
On error, $@ will contain either a reference to a Etcd::Error object (for API-level errors) or a regular string (for network, transport or other errors).
$@
Robert Norris <rob@eatenbyagrue.org>
This software is copyright (c) 2014 by Robert Norris.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Etcd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Etcd
CPAN shell
perl -MCPAN -e shell install Etcd
For more information on module installation, please visit the detailed CPAN module installation guide.