Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-11-07 03:20:49 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-07 04:49:22 +0300
commitb870c6a83be9f319d2ade9299d0fbfda51cf9ebc (patch)
tree4f1cb87e5f25cb126e1a7d3cbe26ecee4e7de5fc /plugins/Actions/Reports
parent6672912f7a5841784a97a1f5b5359df6b1a0f0bb (diff)
Converted Actions.get API method to use processed metrics.
Diffstat (limited to 'plugins/Actions/Reports')
-rw-r--r--plugins/Actions/Reports/Get.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Actions/Reports/Get.php b/plugins/Actions/Reports/Get.php
index 612666c32a..da907315cd 100644
--- a/plugins/Actions/Reports/Get.php
+++ b/plugins/Actions/Reports/Get.php
@@ -9,6 +9,7 @@
namespace Piwik\Plugins\Actions\Reports;
use Piwik\Piwik;
+use Piwik\Plugins\Actions\Metrics\AveragePageGenerationTime;
class Get extends Base
{
@@ -19,6 +20,9 @@ class Get extends Base
$this->name = Piwik::translate('General_Actions') . ' - ' . Piwik::translate('General_MainMetrics');
$this->documentation = ''; // TODO
$this->order = 1;
+ $this->processedMetrics = array(
+ new AveragePageGenerationTime()
+ );
$this->metrics = array(
'nb_pageviews',
'nb_uniq_pageviews',
@@ -27,8 +31,7 @@ class Get extends Base
'nb_outlinks',
'nb_uniq_outlinks',
'nb_searches',
- 'nb_keywords',
- 'avg_time_generation'
+ 'nb_keywords'
);
}
}