protected function DatabaseAggregatorSensorPlugin::addAggregateExpression in Monitoring 8
Adds the aggregate expression to the select query.
Parameters
\Drupal\Core\Database\Query\SelectInterface $select: The database select query.
4 calls to DatabaseAggregatorSensorPlugin::addAggregateExpression()
- DatabaseAggregatorSensorPlugin::getAggregateQuery in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Builds simple aggregate query over one db table.
- DatabaseAggregatorSensorPlugin::getHistoryQuery in src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php - Builds history query over one db table.
- Dblog404SensorPlugin::getQuery in src/
Plugin/ monitoring/ SensorPlugin/ Dblog404SensorPlugin.php - Builds the query for verbose output.
- PhpNoticesSensorPlugin::getQuery in src/
Plugin/ monitoring/ SensorPlugin/ PhpNoticesSensorPlugin.php - Builds the query for verbose output.
2 methods override DatabaseAggregatorSensorPlugin::addAggregateExpression()
- Redirect404SensorPlugin::addAggregateExpression in src/
Plugin/ monitoring/ SensorPlugin/ Redirect404SensorPlugin.php - Adds the aggregate expression to the select query.
- TemporaryFilesUsagesSensorPlugin::addAggregateExpression in src/
Plugin/ monitoring/ SensorPlugin/ TemporaryFilesUsagesSensorPlugin.php - Adds the aggregate expression to the select query.
File
- src/
Plugin/ monitoring/ SensorPlugin/ DatabaseAggregatorSensorPlugin.php, line 126 - Contains \Drupal\monitoring\Plugin\monitoring\SensorPlugin\DatabaseAggregatorSensorPlugin.
Class
- DatabaseAggregatorSensorPlugin
- Database aggregator able to query a single db table.
Namespace
Drupal\monitoring\Plugin\monitoring\SensorPluginCode
protected function addAggregateExpression(SelectInterface $select) {
$select
->addExpression('COUNT(*)', 'records_count');
}