statful / statful-client-php
Statful PHP 客户端
1.0.0-alpha1
2016-12-02 14:49 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-29 00:40:28 UTC
README
Statful 的 PHP 客户端
使用方法
#!php
$metricNamespace = 'business';
$metricName = 'wager';
$metricTags = array(
'transaction' => 'create',
'platform' => 'desktop',
'action' => 'bet',
);
$metricValue = 100;
$client = new StatfulClient('127.0.0.1', '2014', 'business', 'production');
$client->put($metricName, $metricValue, $metricTags, $metricNamespace);
$client->send();