diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-27 01:42:54 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-27 01:42:54 +0300 |
commit | 757d47c08a0b5f51d42748c2b8c6bdd787e6ac7e (patch) | |
tree | d38f05fa44e55293fc4c19fe07978ffe2b166104 /plugins/Actions/Columns | |
parent | 8fafa666122719b7724dd0abb03780c545f201a6 (diff) |
Allow ProcessedMetrics to declare some metrics as temporary so they will be removed if not explicitly requested.
Diffstat (limited to 'plugins/Actions/Columns')
-rw-r--r-- | plugins/Actions/Columns/Metrics/AveragePageGenerationTime.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Actions/Columns/Metrics/AveragePageGenerationTime.php b/plugins/Actions/Columns/Metrics/AveragePageGenerationTime.php index f7df68aaaa..6847a7322d 100644 --- a/plugins/Actions/Columns/Metrics/AveragePageGenerationTime.php +++ b/plugins/Actions/Columns/Metrics/AveragePageGenerationTime.php @@ -40,6 +40,11 @@ class AveragePageGenerationTime extends ProcessedMetric return array('sum_time_generation', 'nb_hits_with_time_generation'); } + public function getTemporaryMetrics() + { + return array('nb_hits_with_time_generation'); + } + public function compute(Row $row) { $sumGenerationTime = $this->getMetric($row, 'sum_time_generation'); |