| 1 | package Starch::Plugin::Net::Statsd::Manager; | ||
| 2 | 1 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | our $VERSION = '0.05'; | |
| 5 | |||
| 6 | 1 | ▶ | use Types::Common::String -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Types::Common::Numeric -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Moo::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 1 | with 'Starch::Plugin::ForManager'; | |
| 13 | |||
| 14 | 1 | has statsd_host => ( | |
| 15 | is => 'ro', | ||
| 16 | isa => NonEmptySimpleStr, | ||
| 17 | ); | ||
| 18 | |||
| 19 | 1 | has statsd_port => ( | |
| 20 | is => 'ro', | ||
| 21 | isa => PositiveInt, | ||
| 22 | ); | ||
| 23 | |||
| 24 | 1 | has statsd_root_path => ( | |
| 25 | is => 'ro', | ||
| 26 | isa => NonEmptySimpleStr, | ||
| 27 | default => 'starch', | ||
| 28 | ); | ||
| 29 | |||
| 30 | 1 | has statsd_sample_rate => ( | |
| 31 | is => 'ro', | ||
| 32 | isa => PositiveOrZeroNum, | ||
| 33 | default => 1, | ||
| 34 | ); | ||
| 35 | |||
| 36 | 1 | 1; | |