-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning of the data persited in the full_data columm
- Loading branch information
1 parent
8a1b36d
commit 8985d7a
Showing
3 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app/models/manageiq/providers/lenovo/physical_infra_manager/event_catcher/event.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class ManageIQ::Providers::Lenovo::PhysicalInfraManager::EventCatcher::Event | ||
|
||
def initialize(data) | ||
@data = data | ||
end | ||
|
||
def to_hash | ||
{ | ||
:event_type => @data.msgID, | ||
:ems_ref => @data.cn, | ||
:source => "LenovoXclarity", | ||
:message => @data.msg, | ||
:timestamp => @data.timeStamp, | ||
:component_id => @data.componentID, | ||
:severity => @data.severity, | ||
:severity_type => @data.severityText, | ||
:sender_uuid => @data.senderUUID, | ||
:sender_name => @data.systemName, | ||
:sender_model => @data.systemTypeModelText, | ||
:sender_type => @data.systemTypeText, | ||
:type => @data.typeText | ||
} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
app/models/manageiq/providers/lenovo/physical_infra_manager/event_parser.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters