Monitor::MetricsAPI::Metric::String - String metric class for Monitor::MetricsAPI
use Monitor::MetricsAPI; my $collector = Monitor::MetricsAPI->new( metrics => { host => { name => 'string' } } ); use Sys::Hostname; $collector->metric('host/name')->set(hostname());
String metrics allow you to track any arbitrary string values in your metric reporting output that you may wish to include. String metrics are initialized as empty strings.
String metrics do not provide any additional methods beyond the base methods offered by Monitor::MetricsAPI::Metric.
Jon Sime <jonsime@gmail.com>
This software is copyright (c) 2015 by OmniTI Computer Consulting, Inc.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Monitor::MetricsAPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Monitor::MetricsAPI
CPAN shell
perl -MCPAN -e shell install Monitor::MetricsAPI
For more information on module installation, please visit the detailed CPAN module installation guide.