Group
Extension

Matches 5

Net-Statsd-Server ( C/CO/COSIMO/Net-Statsd-Server-0.20.tar.gz, COSIMO, 2016; MetaCPAN )
Net-Statsd-Server/lib/Test/Statsd.pm ( view source; MetaCPAN )
$t = Test::Statsd->new({
        binary => './bin/statsd',
        config => './bin/sample-config.json'
    });

    # Brings up the statsd server in the background
    # with the specified configurat
Net-Statsd-Server ( C/CO/COSIMO/Net-Statsd-Server-0.20.tar.gz, COSIMO, 2016; MetaCPAN )
Net-Statsd-Server/lib/Net/Statsd/Server/Backend/Elasticsearch.pm ( view source; MetaCPAN )
sdIndex . '/_bulk',
    method => 'POST',
    headers => {
      'Content-Type'   => 'application/json',
      'Content-Length' => length($payload),
    }
  };

  my $req = HTTP::Request->new();
  $re
Net-Statsd-Server ( C/CO/COSIMO/Net-Statsd-Server-0.20.tar.gz, COSIMO, 2016; MetaCPAN )
Net-Statsd-Server/lib/Net/Statsd/Server/Changes.pod ( view source; MetaCPAN )
e flush code wasn't doing this previously.

  Fixed management commands (:8126) to output correct JSON data
    structures.

  This is the first fully functional statsd server release.

=head2 Net::St
Net-Statsd-Server ( C/CO/COSIMO/Net-Statsd-Server-0.20.tar.gz, COSIMO, 2016; MetaCPAN )
Net-Statsd-Server/lib/Net/Statsd/Server/Backend/Console.pm ( view source; MetaCPAN )
 JSON::XS ();

use base qw(Net::Statsd::Server::Backend);

sub init {
  my ($self) = @_;

=cut
  $self->{statsCache} = {
    counters => {},
    timers => {},
  };
=cut

  $self->{json_emitter} = JSON
 => $metrics->{sets},
    pctThreshold  => $metrics->{pctThreshold},
  };

  print STDERR $self->{json_emitter}->encode($out), "\n";
  return;
}

sub status {
  my ($self) = @_;
  return {
    last_fl
Net-Statsd-Server ( C/CO/COSIMO/Net-Statsd-Server-0.20.tar.gz, COSIMO, 2016; MetaCPAN )
Net-Statsd-Server/lib/Net/Statsd/Server.pm ( view source; MetaCPAN )
atsd *server*

package Net::Statsd::Server;

# Use statements {{{

use strict;
#se warnings;

use JSON::XS ();
use Socket qw(SOL_SOCKET SO_RCVBUF);
use Time::HiRes ();

use AnyEvent;
use AnyEvent::Han
f->{$_} = $opt->{$_}
    for keys %{ $opt };

  bless $self, $class;
}

# Flatten JSON booleans to avoid calls to JSON::XS::bool
# in the performance-critical code paths
sub _flatten_bools {
  my ($se
   $conf_hash->{$_} = !! $conf_hash->{$_};
  }
  return $conf_hash;
}

sub _json_emitter {
  my ($self) = @_;
  my $js = JSON::XS->new()
    ->utf8(1)
    ->shrink(1)
    ->space_before(0)
    ->space

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.