You are here

protected function Redirect404SensorPlugin::addAggregateExpression in Monitoring 8

Adds the aggregate expression to the select query.

Parameters

\Drupal\Core\Database\Query\SelectInterface $select: The database select query.

Overrides DatabaseAggregatorSensorPlugin::addAggregateExpression

File

src/Plugin/monitoring/SensorPlugin/Redirect404SensorPlugin.php, line 40

Class

Redirect404SensorPlugin
Monitors 404 error requests.

Namespace

Drupal\monitoring\Plugin\monitoring\SensorPlugin

Code

protected function addAggregateExpression(SelectInterface $select) {
  $select
    ->addField('redirect_404', 'daily_count', 'records_count');
}