File Coverage

blib/lib/Starch/Plugin/Net/Statsd/Manager.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 23 23 100.0


line stmt bran cond sub pod time code
1             package Starch::Plugin::Net::Statsd::Manager;
2 1     1   557 use 5.008001;
  1         4  
3 1     1   5 use strictures 2;
  1         7  
  1         34  
4             our $VERSION = '0.05';
5              
6 1     1   187 use Types::Common::String -types;
  1         3  
  1         18  
7 1     1   1592 use Types::Common::Numeric -types;
  1         2  
  1         10  
8              
9 1     1   1303 use Moo::Role;
  1         3  
  1         6  
10 1     1   437 use namespace::clean;
  1         2  
  1         9  
11              
12             with 'Starch::Plugin::ForManager';
13              
14             has statsd_host => (
15             is => 'ro',
16             isa => NonEmptySimpleStr,
17             );
18              
19             has statsd_port => (
20             is => 'ro',
21             isa => PositiveInt,
22             );
23              
24             has statsd_root_path => (
25             is => 'ro',
26             isa => NonEmptySimpleStr,
27             default => 'starch',
28             );
29              
30             has statsd_sample_rate => (
31             is => 'ro',
32             isa => PositiveOrZeroNum,
33             default => 1,
34             );
35              
36             1;