diff options
Diffstat (limited to 'lib/gitlab/usage/metrics/instrumentations/generic_metric.rb')
-rw-r--r-- | lib/gitlab/usage/metrics/instrumentations/generic_metric.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/usage/metrics/instrumentations/generic_metric.rb b/lib/gitlab/usage/metrics/instrumentations/generic_metric.rb index 0f4b903b99c..7c646281598 100644 --- a/lib/gitlab/usage/metrics/instrumentations/generic_metric.rb +++ b/lib/gitlab/usage/metrics/instrumentations/generic_metric.rb @@ -28,9 +28,8 @@ module Gitlab end end - def initialize(time_frame: 'none', options: {}) - @time_frame = time_frame - @options = options + def initialize(metric_definition) + super(metric_definition.reverse_merge(time_frame: 'none')) end def value |