|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
32 #pragma db object polymorphic callback(odb_callback)
45 virtual void method(
const std::string &
string)
override;
47 virtual void uuid(
const std::string &
string)
override;
51 virtual void status_string(
const std::string &
string)
override;
61 virtual const std::string &
method()
const override;
63 virtual const std::string &
uuid()
const override;
virtual const std::string & source_endpoint() const override
uint16_t database_operations_
Count the number of database operation that happened while processing this API call.
std::string request_content_
Copy of the JSON content of the request.
static WSAPICallPtr create(const DBPtr &database)
std::string source_endpoint_
The source IP:Port of the client who made the request.
void database(DBPtr db)
Set the database pointer.
std::shared_ptr< odb::database > DBPtr
std::string status_string_
The status string of the response.
APIStatusCode status_code_
Status code of the response.
virtual const std::string & method() const override
virtual void database_operations(uint16_t nb_operation) override
The number of database queries.
virtual std::string generate_description() const override
Generate a description for this event.
This is the header file for a generated source file, GitSHA1.cpp.
virtual void response_content(const std::string &string) override
virtual const std::string & status_string() const override
std::string uuid_
The UUID of the request.
virtual const std::string & uuid() const override
Provide static methods to instanciate various Audit objects.
virtual void request_content(const std::string &string) override
The (JSON) content of the request.
APIStatusCode
Those are the Leosac API status code.
virtual ~WSAPICall()=default
Implementation of IAuditEntry, backed by ODB.
std::shared_ptr< WSAPICall > WSAPICallPtr
virtual APIStatusCode status_code() const override
std::string response_content_
Copy of the JSON content of the response.
Provides the implementation of IWSAPICall.
An audit entry dedicated to tracing API call.