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 PathBin = beam_stats_msg_graphite:path_to_bin(Path),
32 -spec cons(binary(), non_neg_integer()) ->
34 cons(<<Name/binary>>, Value) ->
44 { name = <<Name/binary>>
48 ValueBin = integer_to_binary(Value),
49 << Name/binary, ":", ValueBin/binary, "|g\n">>.