class EventRecord
Defined at line 27 of file ../../third_party/cobalt/src/logger/event_record.h
A container for an Event proto message and the ProjectContext and the metric within it for which
that Event should be logged.
Public Methods
lib::statusor::StatusOr<std::unique_ptr<EventRecord>> MakeEventRecord (std::shared_ptr<const ProjectContext> project_context, uint32_t metric_id)
Defined at line 29 of file ../../third_party/cobalt/src/logger/event_record.h
lib::statusor::StatusOr<std::unique_ptr<EventRecord>> MakeEventRecord (util::NotNullSharedPtr<const ProjectContext> project_context, uint32_t metric_id)
Defined at line 37 of file ../../third_party/cobalt/src/logger/event_record.h
void ~EventRecord ()
Defined at line 48 of file ../../third_party/cobalt/src/logger/event_record.h
void EventRecord (EventRecord && rhs)
Defined at line 49 of file ../../third_party/cobalt/src/logger/event_record.h
const ProjectContext * project_context ()
Get the ProjectContext associated with this Event.
Defined at line 52 of file ../../third_party/cobalt/src/logger/event_record.h
const MetricDefinition * metric ()
Get the Metric within the ProjectContext that this Event is for.
Defined at line 55 of file ../../third_party/cobalt/src/logger/event_record.h
Event * event ()
Get the Event that is to be logged.
Defined at line 58 of file ../../third_party/cobalt/src/logger/event_record.h
util::TimeInfo GetTimeInfo ()
Defined at line 60 of file ../../third_party/cobalt/src/logger/event_record.h
SystemProfile * system_profile ()
Get the SystemProfile that is to be logged with the event.
Defined at line 68 of file ../../third_party/cobalt/src/logger/event_record.h
std::string GetLogDetails ()
Defined at line 70 of file ../../third_party/cobalt/src/logger/event_record.h
std::string FullMetricName ()
Defined at line 74 of file ../../third_party/cobalt/src/logger/event_record.h
lib::MetricIdentifier MetricIdentifier ()
Defined at line 78 of file ../../third_party/cobalt/src/logger/event_record.h