38 enum class process_id_kind
47 process_id_kind kind = process_id_kind::none;
50 bool has_pidfd =
false;
74 event(std::string path, time_t evt_time, std::vector<fsw_event_flag> flags);
84 event(std::string path, time_t evt_time, std::vector<fsw_event_flag> flags,
unsigned long correlation_id);
97 std::vector<fsw_event_flag> flags,
98 unsigned long correlation_id,
127 std::vector<fsw_event_flag>
get_flags()
const;
192 std::vector<fsw_event_flag> evt_flags;
193 unsigned long correlation_id = 0;
fsw_event_flag
Backend-agnostic change flags.
Definition cevent.h:66
event(std::string path, time_t evt_time, std::vector< fsw_event_flag > flags, unsigned long correlation_id, process_metadata process)
Constructs an event with optional process metadata.
time_t get_time() const
Returns the time of the event.
Definition event.cpp:55
int get_process_pidfd() const
Returns the process file descriptor associated with this event.
Definition event.cpp:90
bool has_process_pidfd() const
Returns true if the event has a process file descriptor.
Definition event.cpp:85
event(std::string path, time_t evt_time, std::vector< fsw_event_flag > flags)
Constructs an event.
event(std::string path, time_t evt_time, std::vector< fsw_event_flag > flags, unsigned long correlation_id)
Constructs an event.
unsigned long get_correlation_id() const
Returns the correlation_id of the file of the event.
Definition event.cpp:65
long long get_process_id() const
Returns the process or thread identifier associated with this event.
Definition event.cpp:75
static std::string get_event_flag_name(const fsw_event_flag &flag)
Get the name of an event flag.
Definition event.cpp:141
std::string get_path() const
Returns the path of the event.
Definition event.cpp:50
process_id_kind get_process_id_kind() const
Returns the process identifier kind.
Definition event.cpp:80
std::vector< fsw_event_flag > get_flags() const
Returns the flags of the event.
Definition event.cpp:60
static std::string get_process_id_kind_name(process_id_kind kind)
Get the display name of a process identifier kind.
Definition event.cpp:95
bool has_process_id() const
Returns true if the event has process attribution metadata.
Definition event.cpp:70
virtual ~event()
Destructs an event.
static fsw_event_flag get_event_flag_by_name(const std::string &name)
Get event flag by name.
Definition event.cpp:110
Main namespace of libfswatch.
Definition event.cpp:24