class DiagnosticsInterface
Defined at line 17 of file ../../third_party/cobalt/src/public/diagnostics_interface.h
Interface for receiving diagnostic information about the functioning of the Cobalt Core library.
Public Methods
void DiagnosticsInterface ()
Defined at line 19 of file ../../third_party/cobalt/src/public/diagnostics_interface.h
void SentObservationResult (const Status & status)
Called when Cobalt finishes an attempt to send observations to the server.
|status| is the result of the attempt.
void ObservationStoreUpdated (const std::map<lib::ReportSpec, uint64_t> & num_obs_per_report, int64_t store_byte_count, int64_t max_store_bytes)
Called when the Cobalt local Observation Store is updated.
|status| is the result of the attempt.
void LoggerCalled (int PerProjectLoggerCallsMadeMigratedMetricDimensionLoggerMethod, const std::string & project)
Logged for every call to Logger along with which method was called and the project
that called it.
void ~DiagnosticsInterface ()
Defined at line 20 of file ../../third_party/cobalt/src/public/diagnostics_interface.h
void ObservationStoreUpdated (const std::map<lib::ReportIdentifier, uint64_t> & num_obs_per_report, int64_t store_byte_count, int64_t max_store_bytes)
Defined at line 34 of file ../../third_party/cobalt/src/public/diagnostics_interface.h
void LocalAggregationQuotaEvent (const lib::ProjectIdentifier & project, int event_type)
Used to track what the quota state of each project on the system is.
|event_type|: tracks what the state is (1: Below quota, 2: Above quota, 3: Above quota and log
rejected).
TODO(https://fxbug.dev/42178669): Remove default implementation once this is implemented in
Fuchsia.
Defined at line 65 of file ../../third_party/cobalt/src/public/diagnostics_interface.h
void TrackDiskUsage (int storageClass, int64_t bytes, int64_t byte_limit)
Used to track how much data is stored per-class on disk.
TODO(https://fxbug.dev/278930401): use named types when InternalMetrics::TrackDiskUsage is
fixed. NOLINTNEXTLINE(bugprone-easily-swappable-parameters)