class ClocklessCobaltServiceInterface
Defined at line 12 of file ../../third_party/cobalt/src/public/clockless_cobalt_service_interface.h
Public Methods
std::unique_ptr<logger::AtTimePointLoggerInterface> NewAtTimePointLogger (uint32_t customer_id, uint32_t project_id)
NewAtTimePointLogger returns a new instance of a Logger object using the
customer_id and project_id based
on the registry provided in the config. If the project is not found, this
will return nullptr. If no registry was provided, this will crash.
system_data::SystemDataInterface * system_data ()
system_data returns a pointer to the internal SystemDataInterface object.
This should only be used for updating the Experiment state or channel in the system data.
system_data::SystemDataInterface & system_data_ref ()
system_data_ref returns a reference to the internal SystemDataInterface
object. This should be used instead of system_data().
Status GenerateAggregatedObservations (const std::chrono::system_clock::time_point & timestamp)
Generates aggregated observations for aggregation periods that have ended
before |timestamp| in the time zone associated with the metric.
void ShutDown ()
Courtesy signal for Cobalt to begin a graceful shutdown.
Cobalt may be terminated before the shut down process is complete. The
amount of time before this occurs depends on caller. No metrics should be
logged after the shutdown signal is sent.
void ~ClocklessCobaltServiceInterface ()
Defined at line 14 of file ../../third_party/cobalt/src/public/clockless_cobalt_service_interface.h