2020-10-24 23:57:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Pipeline
|
|
|
|
module Chain
|
|
|
|
class Metrics < Chain::Base
|
|
|
|
def perform!
|
|
|
|
counter.increment(source: @pipeline.source)
|
|
|
|
end
|
|
|
|
|
|
|
|
def break?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
|
|
|
def counter
|
2021-04-29 21:17:54 +05:30
|
|
|
::Gitlab::Ci::Pipeline::Metrics.pipelines_created_counter
|
2020-10-24 23:57:45 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|