PHP Class StatisticClient, statistics

Author: workerman
Author: xmc 2015.06.06
Afficher le fichier Open project: smalleyes/statistics Class Usage Examples

Protected Properties

Свойство Type Description
$client
$timeMap array ..], module=>[interface=>time_start ..], ... ]

Méthodes publiques

Méthode 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 méthode

上报统计数据
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
Résultat boolean

sendData() public static méthode

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

tick() public static méthode

模块接口上报消耗时间记时
public static tick ( string $module = '', string $interface = '' ) : void
$module string
$interface string
Résultat 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
Résultat array