Welcome to mirror list, hosted at ThFree Co, Russian Federation.

count_user_auth_metric.rb « instrumentations « metrics « usage « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1de93ce6dfa21b6211a69d66cb607a7814446825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Usage
    module Metrics
      module Instrumentations
        class CountUserAuthMetric < DatabaseMetric
          operation :distinct_count, column: :user_id

          relation do
            AuthenticationEvent.success
          end
        end
      end
    end
  end
end