\AmfphpMonitorService

monitoring service. controls logging, and provides method to fetch data.

Summary

Methods
Properties
Constants
_getMethodRoles()
getData()
flush()
$logPath
$restrictAccess
$maxLogFileSize
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$logPath

$logPath : \type

path to log.

Type

\type — string

$restrictAccess

$restrictAccess : boolean

restrict access to amfphp_admin.

Type

boolean

$maxLogFileSize

$maxLogFileSize : integer

max log file size

Type

integer

Methods

_getMethodRoles()

_getMethodRoles(string $methodName) : array

get method roles

Parameters

string $methodName

Returns

array

getData()

getData(boolean $flush) : array

parse logged data and return it.

the format is obj -> sortedDatas ( array ( uri => times (array (name => array of times)) obj -> timeNames

note: timeNames are needed for rendering on the client side, to make sure that each series has the same times. This could be done on the client side, but is faster to do here.

Parameters

boolean $flush

get rid of the logged data

Returns

array

flush()

flush()

flush monitor log