riemann-php-client:黎曼事件系统的 php 客户端

时间:2021-06-10 05:46:10
【文件属性】:
文件名称:riemann-php-client:黎曼事件系统的 php 客户端
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-10 05:46:10
PHP riemann-php-客户端 使用 thrift socket 传输 atm,但实际上并不需要这种依赖。 示例客户 use Riemann \ Client ; require __DIR__ . '/vendor/autoload.php' ; $ riemannClient = Client :: create ( 'localhost' , 5555 ); $ eventBuilder = $ riemannClient -> getEventBuilder (); $ eventBuilder -> setService ( "php stuff" ); $ eventBuilder -> setMetric ( mt_rand ( 0 , 99 )); $ eventBuilder -> addTag ( 'histogram' ); $ eventBuilder ->
【文件预览】:
riemann-php-client-master
----composer.json(630B)
----.travis.yml(107B)
----composer.lock(17KB)
----tests()
--------bootstrap.php(580B)
--------Riemann()
----example.php(565B)
----src()
--------Riemann()
----.gitignore(36B)
----phpunit.xml.dist(261B)
----README.md(1KB)

网友评论