The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Etcd::Stats - etcd stats API

VERSION

version 0.004

SYNOPSIS

    use Etcd;
    my $etcd = Etcd->new;
    
    my $leader_stats = $etcd->stats("leader");
    
    my $store_stats = $etcd->stats("store");
    
    my $self_stats = $etcd->stats("self");

DESCRIPTION

This module provides access to etcd's stats API.

METHODS

  • 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).

AUTHORS

  • Robert Norris <rob@eatenbyagrue.org>

COPYRIGHT AND LICENSE

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.