Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
statsd
v0.5.0
Statsd
Client
Methods
MetricMessage
Built with Crystal 1.9.2
2023-10-08 07:09:04 UTC
class
Statsd::Client
Statsd::Client
Reference
Object
Included Modules
Statsd::Methods
Defined in:
statsd/client.cr
Constructors
.new
(host : String, port : Int)
.new
(destination : Socket::IPAddress =
Socket
::
IPAddress
.new(
"127.0.0.1"
,
8125
))
Instance Method Summary
#host
#port
Instance methods inherited from module
Statsd::Methods
decrement(metric_name, sample_rate =
nil
, tags =
nil
)
decrement
,
distribution(metric_name, value, tags =
nil
)
distribution
,
gauge(metric_name, value, tags =
nil
)
gauge
,
histogram(metric_name, value, tags =
nil
)
histogram
,
increment(metric_name, sample_rate =
nil
, tags =
nil
)
increment
,
set(metric_name, value, tags =
nil
)
set
,
time(metric_name, tags =
nil
, &)
time
,
timing(metric_name, ms, tags =
nil
)
timing
Constructor Detail
def self.
new
(host : String, port : Int)
#
[
View source
]
def self.
new
(destination : Socket::IPAddress =
Socket
::
IPAddress
.new(
"127.0.0.1"
,
8125
))
#
[
View source
]
Instance Method Detail
def
host
#
[
View source
]
def
port
#
[
View source
]