debian-mirror-gitlab/app/services/concerns/incident_management/usage_data.rb
2022-06-21 17:19:12 +05:30

13 lines
305 B
Ruby

# 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