class Monitor

functions for displaying server status sub item: monitor

Methods

__construct(DatabaseInterface $dbi)

Monitor constructor.

array
getJsonForChartingData(string $requiredData)

Returns JSON for real-time charting data

array
getJsonForLogDataTypeSlow(int $start, int $end)

Returns JSON for log data with type: slow

array
getJsonForLogDataTypeGeneral(int $start, int $end, bool $isTypesLimited, bool $removeVariables)

Returns JSon for log data with type: general

array
getJsonForLoggingVars(string|null $name, string|null $value)

Returns JSON for logging vars

array
getJsonForQueryAnalyzer(string $database, string $query)

Returns JSON for query_analyzer

Details

at line 31
__construct(DatabaseInterface $dbi)

Monitor constructor.

Parameters

DatabaseInterface $dbi DatabaseInterface instance

at line 43
array getJsonForChartingData(string $requiredData)

Returns JSON for real-time charting data

Parameters

string $requiredData Required data

Return Value

array JSON

at line 260
array getJsonForLogDataTypeSlow(int $start, int $end)

Returns JSON for log data with type: slow

Parameters

int $start Unix Time: Start time for query
int $end Unix Time: End time for query

Return Value

array

at line 333
array getJsonForLogDataTypeGeneral(int $start, int $end, bool $isTypesLimited, bool $removeVariables)

Returns JSon for log data with type: general

Parameters

int $start Unix Time: Start time for query
int $end Unix Time: End time for query
bool $isTypesLimited Whether to limit types or not
bool $removeVariables Whether to remove variables or not

Return Value

array

at line 462
array getJsonForLoggingVars(string|null $name, string|null $value)

Returns JSON for logging vars

Parameters

string|null $name Variable name
string|null $value Variable value

Return Value

array JSON

at line 494
array getJsonForQueryAnalyzer(string $database, string $query)

Returns JSON for query_analyzer

Parameters

string $database Database name
string $query SQL query

Return Value

array JSON