diff options
Diffstat (limited to 'lib/gitlab/usage/metrics/instrumentations/count_ml_candidates_metric.rb')
-rw-r--r-- | lib/gitlab/usage/metrics/instrumentations/count_ml_candidates_metric.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/gitlab/usage/metrics/instrumentations/count_ml_candidates_metric.rb b/lib/gitlab/usage/metrics/instrumentations/count_ml_candidates_metric.rb new file mode 100644 index 00000000000..e6e547c155c --- /dev/null +++ b/lib/gitlab/usage/metrics/instrumentations/count_ml_candidates_metric.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Gitlab + module Usage + module Metrics + module Instrumentations + class CountMlCandidatesMetric < DatabaseMetric + operation :count + + relation { Ml::Candidate } + end + end + end + end +end |