Alexander Hansen | b80ba2e | 2024-11-18 12:24:35 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <nlohmann/json.hpp> |
| 4 | |
Ed Tanous | 4a19a7b | 2025-01-27 10:44:15 -0800 | [diff] [blame^] | 5 | #include <cstdint> |
Alexander Hansen | b80ba2e | 2024-11-18 12:24:35 +0100 | [diff] [blame] | 6 | #include <span> |
| 7 | #include <string> |
| 8 | #include <string_view> |
Ed Tanous | d785720 | 2025-01-28 15:32:26 -0800 | [diff] [blame] | 9 | #include <vector> |
Alexander Hansen | b80ba2e | 2024-11-18 12:24:35 +0100 | [diff] [blame] | 10 | |
| 11 | namespace redfish |
| 12 | { |
| 13 | |
| 14 | namespace event_log |
| 15 | { |
| 16 | |
| 17 | bool getUniqueEntryID(const std::string& logEntry, std::string& entryID); |
| 18 | |
| 19 | int getEventLogParams(const std::string& logEntry, std::string& timestamp, |
| 20 | std::string& messageID, |
| 21 | std::vector<std::string>& messageArgs); |
| 22 | |
Ed Tanous | 4a19a7b | 2025-01-27 10:44:15 -0800 | [diff] [blame^] | 23 | int formatEventLogEntry(uint64_t eventId, const std::string& logEntryID, |
| 24 | const std::string& messageID, |
| 25 | std::span<std::string_view> messageArgs, |
| 26 | std::string timestamp, const std::string& customText, |
| 27 | nlohmann::json::object_t& logEntryJson); |
Alexander Hansen | b80ba2e | 2024-11-18 12:24:35 +0100 | [diff] [blame] | 28 | |
| 29 | } // namespace event_log |
| 30 | |
| 31 | } // namespace redfish |