class CobaltTestAppLogger

Defined at line 29 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

Public Members

bool use_network_
fuchsia::cobalt::ControllerSyncPtr * cobalt_controller_
SynchronousInterfacePtr metric_event_logger_
SynchronousInterfacePtr control_metric_event_logger_
SynchronousInterfacePtr experimental_metric_event_logger_

Public Methods

bool LogOccurrence (uint32_t metric_id, std::vector<uint32_t> indices, uint64_t count, ExperimentArm arm)

Synchronously invokes LogOccurrence() using the given parameters.

Defined at line 20 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc

void CobaltTestAppLogger (bool use_network, fuchsia::cobalt::ControllerSyncPtr * cobalt_controller, fuchsia::diagnostics::ArchiveAccessorSyncPtr * inspect_archive)

Defined at line 31 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

bool LogInteger (uint32_t metric_id, std::vector<uint32_t> indices, int64_t value)

Synchronously invokes LogInteger() using the given parameters.

Defined at line 43 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc

bool LogIntegerHistogram (uint32_t metric_id, std::vector<uint32_t> indices, const std::map<uint32_t, uint64_t> & histogram_map)

Synchronously invokes LogIntegerHistogram() using the given parameters.

Defined at line 55 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc

void SetCobaltUnderTestMoniker (const std::string & cobalt_under_test_moniker)

Set the component moniker used by the current Cobalt instance that is being tested.

Defined at line 63 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.h

bool LogString (uint32_t metric_id, std::vector<uint32_t> indices, const std::string & string_value)

Synchronously invokes LogString() using the given parameters.

Defined at line 77 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc

bool CheckForSuccessfulSend ()

If |use_network_| is false this method returns true immediately.

Otherwise, triggers the Cobalt FIDL service to send observations for

all of the events that have already been logged. Returns true just in case

the send succeeds.

We use the method RequestSendSoon() to ask the Cobalt FIDL Service to send

the Observations soon and return the status.

Defined at line 90 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc

std::string GetInspectJson ()

Get the inspect JSON for the current Cobalt instance that is being tested.

Defined at line 104 of file ../../src/cobalt/bin/testapp/cobalt_testapp_logger.cc