PHP Class StatisticClient, statistics

Author: workerman
Author: xmc 2015.06.06
Datei anzeigen Open project: smalleyes/statistics Class Usage Examples

Protected Properties

Property Type Description
$client
$timeMap array ..], module=>[interface=>time_start ..], ... ]

Public Methods

Method Description
report ( string $module, string $interface, boolean $success, integer $code, string $msg, string $report_address = '' ) : boolean 上报统计数据
sendData ( string $address, string $buffer, $timeout = 10 ) : boolean 发送数据给统计系统
tick ( string $module = '', string $interface = '' ) : void 模块接口上报消耗时间记时

Method Details

report() public static method

上报统计数据
public static report ( string $module, string $interface, boolean $success, integer $code, string $msg, string $report_address = '' ) : boolean
$module string
$interface string
$success boolean
$code integer
$msg string
$report_address string
return boolean

sendData() public static method

发送数据给统计系统
public static sendData ( string $address, string $buffer, $timeout = 10 ) : boolean
$address string
$buffer string
return boolean

tick() public static method

模块接口上报消耗时间记时
public static tick ( string $module = '', string $interface = '' ) : void
$module string
$interface string
return void

Property Details

$client protected_oe static_oe property

protected static $client

$timeMap protected_oe static_oe property

..], module=>[interface=>time_start ..], ... ]
protected static array $timeMap
return array