PHP Class Transport\Statistics

Exibir arquivo Open project: opendatach/transport

Protected Properties

Property Type Description
$enabled
$redis

Public Methods

Method Description
__construct ( Client $redis = null, $enabled = false )
call ( )
error ( $e )
getCalls ( )
getErrors ( )
getTopExceptions ( )
getTopResources ( )
getTopStations ( )
resource ( string $path )
station ( Location $station )

Protected Methods

Method Description
count ( string $prefix, string $id, array $data )
top ( string $key, string[] $fields )

Method Details

__construct() public method

public __construct ( Client $redis = null, $enabled = false )
$redis Predis\Client

call() public method

public call ( )

count() protected method

protected count ( string $prefix, string $id, array $data )
$prefix string
$id string
$data array

error() public method

public error ( $e )

getCalls() public method

public getCalls ( )

getErrors() public method

public getErrors ( )

getTopExceptions() public method

public getTopExceptions ( )

getTopResources() public method

public getTopResources ( )

getTopStations() public method

public getTopStations ( )

resource() public method

public resource ( string $path )
$path string

station() public method

public station ( Location $station )
$station Transport\Entity\Location\Location

top() protected method

protected top ( string $key, string[] $fields )
$key string
$fields string[]

Property Details

$enabled protected_oe property

protected $enabled

$redis protected_oe property

protected $redis