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

usage_data.rb « incident_management « concerns « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27e60029ea389b99b9aaf434ef499462f4b58d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module IncidentManagement
  module UsageData
    include Gitlab::Utils::UsageData

    def track_incident_action(current_user, target, action)
      return unless target.incident?

      track_usage_event(:"incident_management_#{action}", current_user.id)
    end
  end
end