19 lines
335 B
Ruby
19 lines
335 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Gitlab
|
||
|
module Usage
|
||
|
module Metrics
|
||
|
module Instrumentations
|
||
|
class CountIssuesMetric < DatabaseMetric
|
||
|
operation :count
|
||
|
|
||
|
start { Issue.minimum(:id) }
|
||
|
finish { Issue.maximum(:id) }
|
||
|
|
||
|
relation { Issue }
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|