module ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::EventParser
  def event_to_hash(event, ems_id)
    {
      :event_type => "#{self.event_type}_#{event.operation}",
      :source     => "#{self.source}",
      :message    => event.changes.to_s,
      :timestamp  => event.timestamp,
      :full_data  => event.to_h,
      :ems_id     => ems_id
    }
  end
end

module ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::EventParser
  def event_to_hash(event, ems_id)
    {
      :event_type => "#{event.object1}_#{event.operation}",
      :source     => "#{self.source}",
      :timestamp  => event.timestamp,
      :full_data  => event.to_h,
      :ems_id     => ems_id
    }
  end
end

Add Ansible event target type into event_type.
Add Ansible event target type into event_type.

Add Ansible event target type into event_type to distinguish the event from different event targets.
No need to repeat event.changes in message to reduce the event object's size.
