33#ifndef API_MIP_EVENT_H_
34#define API_MIP_EVENT_H_
57 virtual const std::string&
GetName()
const = 0;
71 virtual const std::chrono::steady_clock::time_point&
GetStartTime()
const = 0;
78 virtual void AddProperty(
const std::shared_ptr<EventProperty>& prop) = 0;
86 virtual void AddProperty(
const std::string& name,
bool value) = 0;
95 virtual void AddProperty(
const std::string& name,
double value,
Pii pii) = 0;
113 virtual void AddProperty(
const std::string& name,
const std::string& value,
Pii pii) = 0;
131 virtual std::vector<std::shared_ptr<EventProperty>>
GetProperties()
const = 0;
140 virtual std::shared_ptr<EventProperty>
GetProperty(
const std::string& name)
const = 0;
A single audit/telemetry event.
virtual const std::string & GetName() const =0
Get event name.
virtual const std::chrono::steady_clock::time_point & GetStartTime() const =0
Get event start time.
virtual void AddProperty(const std::string &name, const std::string &value, Pii pii)=0
Add a string property to the event.
virtual void AddProperty(const std::shared_ptr< EventProperty > &prop)=0
Add a property to the event.
virtual std::vector< std::shared_ptr< EventProperty > > GetProperties() const =0
Get all event properties.
virtual void AddAuditOnlyProperty(const std::string &name, const std::string &value)=0
Add an audit-only string property to the event.
virtual void AddProperty(const std::string &name, bool value)=0
Add a bool property to the event.
virtual void AddProperty(const std::string &name, int64_t value, Pii pii)=0
Add an int64 property to the event.
virtual void AddProperty(const std::string &name, double value, Pii pii)=0
Add a double property to the event.
virtual EventLevel GetLevel() const =0
Get level of event, indicating whether it is considered necessary service data (NSD) or not.
virtual std::shared_ptr< EventProperty > GetProperty(const std::string &name) const =0
Get property with the given name, if any.
File containing diagnostic-related types.
EventLevel
Description of event importance.
Pii
Description of PII data, if any.
A file containing the EventProperty class which describes a single audit/telemetry property.