2020-09-10 17:08:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module IncidentManagement
|
|
|
|
module UsageData
|
|
|
|
include Gitlab::Utils::UsageData
|
|
|
|
|
|
|
|
def track_incident_action(current_user, target, action)
|
|
|
|
return unless target.incident?
|
|
|
|
|
2020-09-17 23:09:28 -04:00
|
|
|
track_usage_event(:"incident_management_#{action}", current_user.id)
|
2020-09-10 17:08:28 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|