-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Description
Create the process that periodically collects the Review Turnaround metrics and makes the collected metrics available in the Metrics table.
Background
The metrics table keeps the value of
- a metric
- of an entity
- at a given point in time or at a given time interval
For example it keeps the collected values of the Review Turnaround metric value.
To populate the metrics table a process runs collecting and calculating the values of interest for each given metric.
The process runs by demand as a standalone process or as a frequent cron job.
The process to collect metrics takes into account which values were already collected to avoid duplicating values (which might add corrupted values to the metric) and collects only the values that haven't been processed yet.
This task implements the metrics recollection process for a first concrete case, the Review Turnaround metric.
Sub-tasks
-
Create the Rake task that invokes the
process metricsjob. -
Create the
ProcessMetricsJobthat process the review_turnaround metrics. -
Create the
MetricsDefinitionmodel that relates a wanted metric (such asreview_turnaround) with its processor and sources (such asdaily per projectorweekly per user) -
Implement a ReviewTurnaroundPerProjectProcessor to generate the review_turnaround metric of projects.