Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::logs::EventLogs Class Reference

#include <EventLogs.hpp>

Public Member Functions

 EventLogs ()=delete
 
 EventLogs (const EventLogs &other)=delete
 
 EventLogs (EventLogs &&other)=delete
 
 ~EventLogs ()=default
 
EventLogsoperator= (const EventLogs &other)=delete
 
EventLogsoperator= (EventLogs &&other) noexcept=delete
 

Static Public Member Functions

static bool createDefaultEvent (iv::model::diamar::EventCategory category, iv::model::diamar::EventTypes type, std::string_view message)
 
static bool createAccessControlEvent (iv::model::diamar::EventTypes type, iv::diamar::eUserProfileType inUser, iv::diamar::eUserProfileType outUser, std::string_view message)
 
static bool createRequestErrorsEvent (iv::model::diamar::EventTypes type, iv::types::ipAddress ip, iv::types::ipPort port, std::string_view message)
 
static bool createControlSystemEvent (iv::model::diamar::EventTypes type, iv::types::unitId unitId, iv::types::channelId channelId, iv::types::groupId groupId, std::string_view message)
 
static bool createBackUpAndRestoreEvent (iv::model::diamar::EventTypes type, std::string_view backupName, std::string_view message)
 
static bool createConfigChangeEvent (iv::model::diamar::EventTypes type, std::string_view message)
 
static bool createOperatingSystemEvent (iv::model::diamar::EventTypes type, std::string_view message)
 
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.
 

Static Private Member Functions

static bool createEvent (const iv::comms::api::eventLogger::EventLoggerMessage &event)
 

Private Attributes

std::weak_ptr< iv::diamar::UserProfilem_activeUser
 

Static Private Attributes

static std::string m_source
 

Constructor & Destructor Documentation

◆ EventLogs() [1/3]

iv::logs::EventLogs::EventLogs ( )
delete

◆ EventLogs() [2/3]

iv::logs::EventLogs::EventLogs ( const EventLogs & other)
delete

◆ EventLogs() [3/3]

iv::logs::EventLogs::EventLogs ( EventLogs && other)
delete

◆ ~EventLogs()

iv::logs::EventLogs::~EventLogs ( )
default

Member Function Documentation

◆ createAccessControlEvent()

bool iv::logs::EventLogs::createAccessControlEvent ( iv::model::diamar::EventTypes type,
iv::diamar::eUserProfileType inUser,
iv::diamar::eUserProfileType outUser,
std::string_view message )
static

◆ createBackUpAndRestoreEvent()

bool iv::logs::EventLogs::createBackUpAndRestoreEvent ( iv::model::diamar::EventTypes type,
std::string_view backupName,
std::string_view message )
static

◆ createConfigChangeEvent()

bool iv::logs::EventLogs::createConfigChangeEvent ( iv::model::diamar::EventTypes type,
std::string_view message )
static

◆ createControlSystemEvent()

bool iv::logs::EventLogs::createControlSystemEvent ( iv::model::diamar::EventTypes type,
iv::types::unitId unitId,
iv::types::channelId channelId,
iv::types::groupId groupId,
std::string_view message )
static

◆ createDefaultEvent()

bool iv::logs::EventLogs::createDefaultEvent ( iv::model::diamar::EventCategory category,
iv::model::diamar::EventTypes type,
std::string_view message )
static

◆ createEvent()

bool iv::logs::EventLogs::createEvent ( const iv::comms::api::eventLogger::EventLoggerMessage & event)
staticprivate

◆ createOperatingSystemEvent()

bool iv::logs::EventLogs::createOperatingSystemEvent ( iv::model::diamar::EventTypes type,
std::string_view message )
static

◆ createRequestErrorsEvent()

bool iv::logs::EventLogs::createRequestErrorsEvent ( iv::model::diamar::EventTypes type,
iv::types::ipAddress ip,
iv::types::ipPort port,
std::string_view message )
static

◆ operator=() [1/2]

EventLogs & iv::logs::EventLogs::operator= ( const EventLogs & other)
delete

◆ operator=() [2/2]

EventLogs & iv::logs::EventLogs::operator= ( EventLogs && other)
deletenoexcept

◆ queryEvents()

bool iv::logs::EventLogs::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() )
static

Requests for events logs.

Parameters
eventsResultEvents logs for this request.
[in-out]paginationInfo Send pagination info request and obtain response data.
eventCategoriesEvent category requested.
stationsSourceEvent sources requested.
startDateStart date.
endDateEnd date.
Returns
Events logs for this request.

Member Data Documentation

◆ m_activeUser

std::weak_ptr<iv::diamar::UserProfile> iv::logs::EventLogs::m_activeUser
private

◆ m_source

std::string iv::logs::EventLogs::m_source
staticprivate

The documentation for this class was generated from the following files: