diff options
author | Simon Rettberg | 2018-01-08 13:47:34 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-08 13:47:34 +0100 |
commit | 0d4d09f6fac5e79a75e8305c0c6c4df1620b6eb0 (patch) | |
tree | 6c13c970674e8bda393a5caa408f97f413e2dd7f /modules-available/statistics/page.inc.php | |
parent | [statistics_reporting] Don't leak locationid in remote report (diff) | |
download | slx-admin-0d4d09f6fac5e79a75e8305c0c6c4df1620b6eb0.tar.gz slx-admin-0d4d09f6fac5e79a75e8305c0c6c4df1620b6eb0.tar.xz slx-admin-0d4d09f6fac5e79a75e8305c0c6c4df1620b6eb0.zip |
[statistics] Add filters for uptime and hostname
Closes #3278
Diffstat (limited to 'modules-available/statistics/page.inc.php')
-rw-r--r-- | modules-available/statistics/page.inc.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php index 77b52e0d..09359342 100644 --- a/modules-available/statistics/page.inc.php +++ b/modules-available/statistics/page.inc.php @@ -104,6 +104,11 @@ class Page_Statistics extends Page 'type' => 'string', 'column' => true ], + 'hostname' => [ + 'op' => Page_Statistics::$op_stringcmp, + 'type' => 'string', + 'column' => true + ], 'subnet' => [ 'op' => Page_Statistics::$op_nominal, 'type' => 'string', @@ -119,7 +124,12 @@ class Page_Statistics extends Page 'type' => 'enum', 'column' => true, 'values' => ['occupied', 'on', 'off', 'idle', 'standby'] - ] + ], + 'runtime' => [ + 'op' => Page_Statistics::$op_ordinal, + 'type' => 'int', + 'column' => true + ], ]; if (Module::isAvailable('locations')) { Page_Statistics::$columns['location'] = [ |