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|null
getJsonForLogDataTypeSlow(int $start, int $end)

Returns JSON for log data with type: slow

array|null
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

array getJsonForChartingData(string $requiredData)

Returns JSON for real-time charting data

Parameters

string $requiredData

Required data

Return Value

array JSON

array|null 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|null

array|null 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|null

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