Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::interfaces::registry_event Struct Reference

Represents a single audit event for registry mutations. More...

#include <registry_audit_log.h>

Collaboration diagram for kcenon::common::interfaces::registry_event:
Collaboration graph

Public Member Functions

 registry_event (registry_action act, std::string target, const source_location &loc=source_location::current(), bool succeeded=true, std::string error="")
 Construct a registry event.
 

Public Attributes

registry_action action
 The type of action performed.
 
std::string target_name
 Name of the service or logger (empty for clear/freeze operations)
 
std::string file
 File where the operation was initiated.
 
int line
 Line number where the operation was initiated.
 
std::string function
 Function where the operation was initiated.
 
std::chrono::system_clock::time_point timestamp
 Timestamp when the event occurred.
 
bool success
 Whether the operation was successful.
 
std::string error_message
 Error message if the operation failed (empty on success)
 

Detailed Description

Represents a single audit event for registry mutations.

Captures all relevant information about a registry operation for security auditing and compliance purposes.

Definition at line 85 of file registry_audit_log.h.

Constructor & Destructor Documentation

◆ registry_event()

kcenon::common::interfaces::registry_event::registry_event ( registry_action act,
std::string target,
const source_location & loc = source_location::current(),
bool succeeded = true,
std::string error = "" )
inline

Construct a registry event.

Parameters
actThe action type
targetTarget name (service/logger name)
locSource location of the operation
succeededWhether the operation succeeded
errorError message if failed

Definition at line 119 of file registry_audit_log.h.

125 : action(act)
126 , target_name(std::move(target))
127 , file(loc.file_name())
128 , line(static_cast<int>(loc.line()))
129 , function(loc.function_name())
130 , timestamp(std::chrono::system_clock::now())
131 , success(succeeded)
132 , error_message(std::move(error)) {}
int line
Line number where the operation was initiated.
std::chrono::system_clock::time_point timestamp
Timestamp when the event occurred.
bool success
Whether the operation was successful.
std::string function
Function where the operation was initiated.
std::string file
File where the operation was initiated.
std::string target_name
Name of the service or logger (empty for clear/freeze operations)
registry_action action
The type of action performed.
std::string error_message
Error message if the operation failed (empty on success)

Member Data Documentation

◆ action

registry_action kcenon::common::interfaces::registry_event::action

The type of action performed.

Definition at line 87 of file registry_audit_log.h.

◆ error_message

std::string kcenon::common::interfaces::registry_event::error_message

Error message if the operation failed (empty on success)

Definition at line 108 of file registry_audit_log.h.

◆ file

std::string kcenon::common::interfaces::registry_event::file

File where the operation was initiated.

Definition at line 93 of file registry_audit_log.h.

◆ function

std::string kcenon::common::interfaces::registry_event::function

Function where the operation was initiated.

Definition at line 99 of file registry_audit_log.h.

◆ line

int kcenon::common::interfaces::registry_event::line

Line number where the operation was initiated.

Definition at line 96 of file registry_audit_log.h.

◆ success

bool kcenon::common::interfaces::registry_event::success

Whether the operation was successful.

Definition at line 105 of file registry_audit_log.h.

◆ target_name

std::string kcenon::common::interfaces::registry_event::target_name

Name of the service or logger (empty for clear/freeze operations)

Definition at line 90 of file registry_audit_log.h.

◆ timestamp

std::chrono::system_clock::time_point kcenon::common::interfaces::registry_event::timestamp

Timestamp when the event occurred.

Definition at line 102 of file registry_audit_log.h.


The documentation for this struct was generated from the following file: