class Monitor (View source)

functions for displaying server status sub item: monitor

Methods

__construct(DatabaseInterface $dbi)

No description

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

__construct(DatabaseInterface $dbi)

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface instance

array getJsonForChartingData(string $requiredData)

Returns JSON for real-time charting data

Parameters

string $requiredData

Required data

Return Value

array JSON

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

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

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

array getJsonForQueryAnalyzer(string $database, string $query)

Returns JSON for query_analyzer

Parameters

string $database

Database name

string $query

SQL query

Return Value

array JSON