The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XAS::Collector::Output::Socket::Base - Base method to interact with socket servers

SYNOPSIS

  use XAS::Collector::Output::Socket::Logstash;

  my $output = XAS::Collector::Output::Socket::Logstash->new(
      -alias => 'socket-logstash',
      -eol   => "\n",
  );

DESCRIPTION

This module will open and maintain a connection to a socker server.

METHODS

new

This module inherits from XAS::Lib::Net::POE::Client and takes these additional parameters:

-eol

The end-of-line terminator to use. Defaults to "\n".

PUBLIC EVENTS

This module declares the following events.

store_data

This event is called when a packet is ready for processing.

SEE ALSO

XAS::Collector::Output::Socket::Logstash
XAS::Collector::Output::Socket::OpenTSDB
XAS::Collector
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (c) 2012-2015 Kevin L. Esteb

This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.