Module dogstatsc_datagram

A DogStatsD datagram module.

References

Description

A DogStatsD datagram module.

Data Types

events()

abstract datatype: events()

metric_type()

metric_type() = c | g | ms | h | s

metrics()

abstract datatype: metrics()

raw_request()

raw_request() = binary()

request()

request() = metrics() | events() | service_check()

service_check()

abstract datatype: service_check()

status()

status() = status_ok | status_warn | status_crit | status_unknown

Function Index

encode/1 encode request for DogStatsD.
new_events/3 new a events request record.
new_metrics/4 new a metrics request record.
new_service_check/3 new a service check request record.

Function Details

encode/1

encode(Metric::request()) -> raw_request()

encode request for DogStatsD

new_events/3

new_events(Name::string(), Text::string(), Opts::map()) -> events()

new a events request record

new_metrics/4

new_metrics(Name::string(), Type::metric_type(), Value::float(), Opts::map()) -> metrics()

new a metrics request record

new_service_check/3

new_service_check(Name::string(), Status::status(), Opts::map()) -> service_check()

new a service check request record.


Generated by EDoc