blob: c902a09d38565ee5263cc6414533846a2e90b11c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include <nlohmann/json.hpp>
#include <cstdint>
#include <span>
#include <string>
#include <string_view>
#include <vector>
namespace redfish
{
namespace event_log
{
bool getUniqueEntryID(const std::string& logEntry, std::string& entryID);
int getEventLogParams(const std::string& logEntry, std::string& timestamp,
std::string& messageID,
std::vector<std::string>& messageArgs);
int formatEventLogEntry(uint64_t eventId, const std::string& logEntryID,
const std::string& messageID,
std::span<std::string_view> messageArgs,
std::string timestamp, const std::string& customText,
nlohmann::json::object_t& logEntryJson);
} // namespace event_log
} // namespace redfish
|