Behaviours: gen_server
.
handle_call/3 | |
handle_cast/2 | |
init/1 | |
send/1 | Send an encoded JSON message to logstash. |
send_message/2 | Send a custom message with fields to logstash. |
start_link/0 | |
terminate/2 |
handle_call(X1::{send, binary()}, X2::any(), State::maps:map()) -> {reply, ok | {error, atom() | {timeout, binary()}}, maps:map()}
handle_cast(X1::term(), State::maps:map()) -> {noreply, maps:map()}
init(X1::term()) -> {ok, maps:map()} | {stop, maps:map()}
send(Data::binary()) -> ok | {error, atom()}
Send an encoded JSON message to logstash.
send_message(Message::binary(), Fields::map()) -> ok | {error, atom()}
Send a custom message with fields to logstash. The fields must be valid input for the json encoder.
start_link() -> {ok, pid()} | {error, term()}
terminate(X1::term(), X2::maps:map()) -> ok
Generated by EDoc