Skip to content

Commit

Permalink
Merge pull request #38 from AndreyMenezes/change_source_name
Browse files Browse the repository at this point in the history
Change source name and add physical_server_id
(cherry picked from commit 77d9da2)
  • Loading branch information
blomquisg authored and simaishi committed Apr 11, 2017
1 parent 0743cc3 commit 0b6f48c
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
module ManageIQ::Providers::Lenovo::PhysicalInfraManager::EventParser
def self.event_to_hash(event, ems_id)
event_hash = {
:event_type => event.eventID,
:source => "LXCA",
:message => event.msg,
:timestamp => event.timeStamp,
:lxca_severity => event.severity,
:lxca_cn => event.cn,
:full_data => event.to_hash,
:ems_id => ems_id
:event_type => event.eventID,
:source => "LenovoXclarity",
:physical_server_ref => event.componentID,
:message => event.msg,
:timeStamp => event.timeStamp,
:lxca_severity => event.severity,
:lxca_cn => event.cn,
:full_data => event.to_hash,
:ems_id => ems_id
}

event_hash
Expand Down

0 comments on commit 0b6f48c

Please sign in to comment.