summaryrefslogtreecommitdiff
path: root/app/services/concerns/incident_management/usage_data.rb
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