From 953321a8bafc3d1544f1d79f68c61ef0fbecb6bd Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 19 Dec 2024 15:34:48 +0800 Subject: [PATCH] * [task#134817] add avg_of_compile_time_pipeline metric. --- .../rate/avg_of_compile_time_pipeline.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/module/metric/calc/system/rate/avg_of_compile_time_pipeline.php b/module/metric/calc/system/rate/avg_of_compile_time_pipeline.php index 937155e972..a3dab2b9f2 100644 --- a/module/metric/calc/system/rate/avg_of_compile_time_pipeline.php +++ b/module/metric/calc/system/rate/avg_of_compile_time_pipeline.php @@ -18,3 +18,23 @@ * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html) * @Link https://www.zentao.net */ +class avg_of_compile_time_pipeline extends baseCalc +{ + public $dataset = 'getCompile'; + + public $fieldList = array('t1.createdDate', 't1.updateDate'); + + public $result = array(); + + public $compileTime = array(); + + public function calculate($row) + { + $createdDate = $row->createdDate; + $updateDate = $row->updateDate; + } + + public function getResult($options = array()) + { + } +}