class InternalMetricsPauseWrapper

Defined at line 252 of file ../../third_party/cobalt/src/logger/internal_metrics.h

InternalMetricsPauseWrapper wraps an instance of InternalMetrics, and adds the ability to pause

logging. This is important to support pausing logging during batch logging to cobalt.

Public Methods

void InternalMetricsPauseWrapper (InternalMetrics * internal_metrics)

Defined at line 254 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void LoggerCalled (LoggerCallsMadeMigratedMetricDimensionLoggerMethod method, const Project & project)

Defined at line 257 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void BytesUploaded (BytesUploadedMetricDimensionStatus upload_status, size_t byte_count)

Defined at line 264 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void BytesUploaded (PerProjectBytesUploadedMigratedMetricDimensionStatus upload_status, size_t byte_count, const lib::ProjectIdentifier & project_identifier)

Defined at line 270 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void BytesStored (PerProjectBytesStoredMigratedMetricDimensionStatus upload_status, size_t byte_count, const lib::ProjectIdentifier & project_identifier)

Defined at line 277 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void InaccurateClockEventsCached (int64_t event_count)

Defined at line 284 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void InaccurateClockEventsDropped (int64_t event_count)

Defined at line 290 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void SetSoftwareDistributionInfoCalled (SetSoftwareDistributionInfoCalledMigratedEventCodes event_codes)

Defined at line 296 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void TrackDiskUsage (StorageClass storage_class, size_t bytes, int64_t max_bytes)

Defined at line 303 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void LocalAggregationQuotaEvent (const lib::ProjectIdentifier & project_identifier, int event_type)

Defined at line 309 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void PauseLogging ()

After PauseLogging is called, all calls to log internal metrics will be

ignored.

Defined at line 318 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void ResumeLogging ()

Once ResumeLogging is called, calls to log internal metrics are will no

longer be ignored.

Defined at line 322 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void Flush ()

Defined at line 324 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void IncrementFlushers ()

Defined at line 325 of file ../../third_party/cobalt/src/logger/internal_metrics.h

bool IsRealImpl ()

Defined at line 327 of file ../../third_party/cobalt/src/logger/internal_metrics.h

void reset (InternalMetrics * internal_metrics)

Defined at line 329 of file ../../third_party/cobalt/src/logger/internal_metrics.h