mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-02-14 16:28:40 +00:00
Merge branch 'develop' of https://github.com/Karaka-Management/oms-Monitoring into develop
This commit is contained in:
commit
2685e69651
|
|
@ -88,7 +88,7 @@ final class BackendController extends Controller
|
||||||
ORDER BY date ASC;'
|
ORDER BY date ASC;'
|
||||||
);
|
);
|
||||||
|
|
||||||
$view->data['stats']['impressions'] = $query->execute()?->fetchAll(\PDO::FETCH_COLUMN|\PDO::FETCH_GROUP) ?? [];
|
$view->data['stats']['impressions'] = $query->execute()?->fetchAll(\PDO::FETCH_COLUMN | \PDO::FETCH_GROUP) ?? [];
|
||||||
|
|
||||||
$query = new Builder($this->app->dbPool->get());
|
$query = new Builder($this->app->dbPool->get());
|
||||||
$query->raw(
|
$query->raw(
|
||||||
|
|
@ -116,7 +116,7 @@ final class BackendController extends Controller
|
||||||
GROUP BY monitoring_request_agent;'
|
GROUP BY monitoring_request_agent;'
|
||||||
);
|
);
|
||||||
|
|
||||||
$view->data['stats']['browser'] = $query->execute()?->fetchAll(\PDO::FETCH_COLUMN|\PDO::FETCH_GROUP) ?? [];
|
$view->data['stats']['browser'] = $query->execute()?->fetchAll(\PDO::FETCH_COLUMN | \PDO::FETCH_GROUP) ?? [];
|
||||||
|
|
||||||
$query = new Builder($this->app->dbPool->get());
|
$query = new Builder($this->app->dbPool->get());
|
||||||
$query->raw(
|
$query->raw(
|
||||||
|
|
|
||||||
|
|
@ -37,14 +37,14 @@ final class ImpressionStatMapper extends DataMapperFactory
|
||||||
*/
|
*/
|
||||||
public const COLUMNS = [
|
public const COLUMNS = [
|
||||||
'monitoring_request_id' => ['name' => 'monitoring_request_id', 'type' => 'int', 'internal' => 'id'],
|
'monitoring_request_id' => ['name' => 'monitoring_request_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'monitoring_request_host' => ['name' => 'monitoring_request_host', 'type' => 'string', 'internal' => 'host',],
|
'monitoring_request_host' => ['name' => 'monitoring_request_host', 'type' => 'string', 'internal' => 'host',],
|
||||||
'monitoring_request_language' => ['name' => 'monitoring_request_language', 'type' => 'string', 'internal' => 'language',],
|
'monitoring_request_language' => ['name' => 'monitoring_request_language', 'type' => 'string', 'internal' => 'language',],
|
||||||
'monitoring_request_country' => ['name' => 'monitoring_request_country', 'type' => 'string', 'internal' => 'country',],
|
'monitoring_request_country' => ['name' => 'monitoring_request_country', 'type' => 'string', 'internal' => 'country',],
|
||||||
'monitoring_request_path' => ['name' => 'monitoring_request_path', 'type' => 'string', 'internal' => 'path',],
|
'monitoring_request_path' => ['name' => 'monitoring_request_path', 'type' => 'string', 'internal' => 'path',],
|
||||||
'monitoring_request_uri' => ['name' => 'monitoring_request_uri', 'type' => 'string', 'internal' => 'uri',],
|
'monitoring_request_uri' => ['name' => 'monitoring_request_uri', 'type' => 'string', 'internal' => 'uri',],
|
||||||
'monitoring_request_referer' => ['name' => 'monitoring_request_referer', 'type' => 'string', 'internal' => 'referer',],
|
'monitoring_request_referer' => ['name' => 'monitoring_request_referer', 'type' => 'string', 'internal' => 'referer',],
|
||||||
'monitoring_request_agent' => ['name' => 'monitoring_request_agent', 'type' => 'string', 'internal' => 'userAgent',],
|
'monitoring_request_agent' => ['name' => 'monitoring_request_agent', 'type' => 'string', 'internal' => 'userAgent',],
|
||||||
'monitoring_request_datetime' => ['name' => 'monitoring_request_datetime', 'type' => 'DateTime', 'internal' => 'datetime',],
|
'monitoring_request_datetime' => ['name' => 'monitoring_request_datetime', 'type' => 'DateTime', 'internal' => 'datetime',],
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user