【文件属性】:
文件名称:deno-statsd-client:用于Deno的简单StatsD客户端
文件大小:22KB
文件格式:ZIP
更新时间:2021-04-05 14:22:19
statsd-client statsd deno TypeScript
deno-statsd客户端
一个用于Deno的简单StatsD客户端。
由于Deno的UDP内容仍然不稳定,因此您需要使用--unstable来使用UDP服务器。 另外,您需要使用--allow-net启用网络访问。
import { StatsDClient } from "https://deno.land/x/statsd@0.1.1/mod.ts" ;
const client = new StatsDClient ( {
server : {
proto : "udp" ,
host : "localhost" ,
port : 8125 ,
} ,
} ) ;
// Count an event:
client . count ( "http.routes.get_resource" ) ;
// Track how long someth
【文件预览】:
deno-statsd-client-main
----.gitignore(19B)
----src()
--------StatsDClient.ts(7KB)
--------StatsDError.ts(43B)
--------types()
--------utils()
--------network()
--------StatsDClient.test.ts(6KB)
----LICENSE(1KB)
----mod.ts(113B)
----smokeTests()
--------longPausesUDP.ts(600B)
--------highFrequencyUDP.ts(895B)
--------README.md(206B)
----deps.ts(18B)
----scripts()
--------newVersion.sh(301B)
----testDeps.ts(76B)
----README.md(6KB)
----docs()
--------protocol notes.md(4KB)
----.editorconfig(285B)