statsderl_protocol (statsderl v0.7.1)

View Source

Summary

Types

key/0

-type key() :: iodata().

operation/0

-type operation() ::
          {cast, iodata()} |
          {counter, key(), value(), sample_rate()} |
          {gauge, key(), value()} |
          {gauge_decrement, key(), value()} |
          {gauge_increment, key(), value()} |
          {timing, key(), value()} |
          {timing_now, key(), erlang:timestamp()} |
          {timing_now_us, key(), erlang:timestamp()}.

sample_rate/0

-type sample_rate() :: number().

value/0

-type value() :: number().

Functions

encode(_)

-spec encode(operation()) -> iodata().