Skip to content

Commit

Permalink
Add physical_server_id to the event hash
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMenezes committed Apr 3, 2017
1 parent 54daaf4 commit bc5fc93
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 => "LenovoXclarity",
: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 bc5fc93

Please sign in to comment.