1#ifndef IV_SRC_LOGS_EVENTLOGS_HPP_
2#define IV_SRC_LOGS_EVENTLOGS_HPP_
29 std::string_view message);
38 std::string_view message);
41 std::string_view message);
56 static bool queryEvents(std::vector<std::shared_ptr<iv::model::diamar::AuditableEvent>> &eventsResult,
58 const std::vector<iv::model::diamar::EventCategory> &eventCategories,
Definition EventLogs.hpp:26
static bool createControlSystemEvent(iv::model::diamar::EventTypes type, iv::types::unitId unitId, iv::types::channelId channelId, iv::types::groupId groupId, std::string_view message)
Definition EventLogs.cpp:194
static bool createConfigChangeEvent(iv::model::diamar::EventTypes type, std::string_view message)
Definition EventLogs.cpp:259
static bool createDefaultEvent(iv::model::diamar::EventCategory category, iv::model::diamar::EventTypes type, std::string_view message)
Definition EventLogs.cpp:15
std::weak_ptr< iv::diamar::UserProfile > m_activeUser
Definition EventLogs.hpp:65
EventLogs & operator=(EventLogs &&other) noexcept=delete
static bool createBackUpAndRestoreEvent(iv::model::diamar::EventTypes type, std::string_view backupName, std::string_view message)
Definition EventLogs.cpp:237
static bool createOperatingSystemEvent(iv::model::diamar::EventTypes type, std::string_view message)
Definition EventLogs.cpp:264
static bool queryEvents(std::vector< std::shared_ptr< iv::model::diamar::AuditableEvent > > &eventsResult, const iv::comms::api::ApiPaginationInfo &paginationInfo, const std::vector< iv::model::diamar::EventCategory > &eventCategories, const std::set< std::string > &stationsSource, const iv::types::timestamp startDate=0, const iv::types::timestamp endDate=iv::time::Timestamp().inMilliseconds())
Requests for events logs.
Definition EventLogs.cpp:39
static bool createEvent(const iv::comms::api::eventLogger::EventLoggerMessage &event)
Definition EventLogs.cpp:213
EventLogs(const EventLogs &other)=delete
static bool createAccessControlEvent(iv::model::diamar::EventTypes type, iv::diamar::eUserProfileType inUser, iv::diamar::eUserProfileType outUser, std::string_view message)
Definition EventLogs.cpp:153
static bool createRequestErrorsEvent(iv::model::diamar::EventTypes type, iv::types::ipAddress ip, iv::types::ipPort port, std::string_view message)
Definition EventLogs.cpp:177
static std::string m_source
Definition EventLogs.hpp:64
EventLogs(EventLogs &&other)=delete
EventLogs & operator=(const EventLogs &other)=delete
Definition Timestamp.hpp:17
eUserProfileType
Definition enums.hpp:34
Definition DownloadLogger.cpp:19
eEventCategory
Definition EventLogs.hpp:18
EventTypes
Definition AuditableEvents.hpp:23
EventCategory
Definition AuditableEvents.hpp:11
uint64_t timestamp
Definition types.hpp:21
uint16_t ipPort
Definition types.hpp:41
uint16_t unitId
Definition types.hpp:77
std::string ipAddress
Definition types.hpp:40
std::string channelId
Definition types.hpp:66
std::string groupId
Definition types.hpp:70
Definition structs.hpp:120