1 -module(beam_stats_msg_statsd_gauge).
3 -include("include/beam_stats_msg_graphite.hrl").
4 -include("include/beam_stats_msg_statsd_gauge.hrl").
20 -spec of_msg_graphite(beam_stats_msg_graphite:t()) ->
23 #beam_stats_msg_graphite
26 , timestamp = _Timestamp
29 PathIOList = beam_stats_msg_graphite:path_to_iolist(Path),
30 cons(PathIOList, Value).
32 -spec cons(iolist(), non_neg_integer()) ->
40 -spec to_iolist(t()) ->
48 ValueBin = integer_to_binary(Value),
49 [Name, <<":">>, ValueBin, <<"|g\n">>].