Lines Matching refs:metrics

37 namespace metrics {  namespace
148 string metric = metrics::kMetricDailyOSAgeDays; in ReportDailyMetrics()
160 metrics::CheckResult result, in ReportUpdateCheckMetrics()
161 metrics::CheckReaction reaction, in ReportUpdateCheckMetrics()
162 metrics::DownloadErrorCode download_error_code) { in ReportUpdateCheckMetrics()
167 if (result != metrics::CheckResult::kUnset) { in ReportUpdateCheckMetrics()
168 metric = metrics::kMetricCheckResult; in ReportUpdateCheckMetrics()
170 max_value = static_cast<int>(metrics::CheckResult::kNumConstants) - 1; in ReportUpdateCheckMetrics()
174 if (reaction != metrics::CheckReaction::kUnset) { in ReportUpdateCheckMetrics()
175 metric = metrics::kMetricCheckReaction; in ReportUpdateCheckMetrics()
177 max_value = static_cast<int>(metrics::CheckReaction::kNumConstants) - 1; in ReportUpdateCheckMetrics()
181 if (download_error_code != metrics::DownloadErrorCode::kUnset) { in ReportUpdateCheckMetrics()
182 metric = metrics::kMetricCheckDownloadErrorCode; in ReportUpdateCheckMetrics()
193 metric = metrics::kMetricCheckTimeSinceLastCheckMinutes; in ReportUpdateCheckMetrics()
207 metric = metrics::kMetricCheckTimeSinceLastCheckUptimeMinutes; in ReportUpdateCheckMetrics()
223 metric = metrics::kMetricCheckTargetVersion; in ReportUpdateCheckMetrics()
228 metric = metrics::kMetricCheckRollbackTargetVersion; in ReportUpdateCheckMetrics()
238 string metric = metrics::kMetricAttemptResult; in ReportAbnormallyTerminatedUpdateAttemptMetrics()
239 metrics::AttemptResult attempt_result = in ReportAbnormallyTerminatedUpdateAttemptMetrics()
240 metrics::AttemptResult::kAbnormalTermination; in ReportAbnormallyTerminatedUpdateAttemptMetrics()
247 static_cast<int>(metrics::AttemptResult::kNumConstants)); in ReportAbnormallyTerminatedUpdateAttemptMetrics()
257 metrics::AttemptResult attempt_result, in ReportUpdateAttemptMetrics()
259 string metric = metrics::kMetricAttemptNumber; in ReportUpdateAttemptMetrics()
267 metric = metrics::kMetricAttemptPayloadType; in ReportUpdateAttemptMetrics()
272 metric = metrics::kMetricAttemptDurationMinutes; in ReportUpdateAttemptMetrics()
281 metric = metrics::kMetricAttemptDurationUptimeMinutes; in ReportUpdateAttemptMetrics()
290 metric = metrics::kMetricAttemptPayloadSizeMiB; in ReportUpdateAttemptMetrics()
299 metric = metrics::kMetricAttemptResult; in ReportUpdateAttemptMetrics()
305 static_cast<int>(metrics::AttemptResult::kNumConstants)); in ReportUpdateAttemptMetrics()
316 metric = metrics::kMetricAttemptTimeSinceLastAttemptMinutes; in ReportUpdateAttemptMetrics()
330 metric = metrics::kMetricAttemptTimeSinceLastAttemptUptimeMinutes; in ReportUpdateAttemptMetrics()
345 metrics::DownloadErrorCode payload_download_error_code, in ReportUpdateAttemptDownloadMetrics()
346 metrics::ConnectionType connection_type) { in ReportUpdateAttemptDownloadMetrics()
347 string metric = metrics::kMetricAttemptPayloadBytesDownloadedMiB; in ReportUpdateAttemptDownloadMetrics()
358 metric = metrics::kMetricAttemptPayloadDownloadSpeedKBps; in ReportUpdateAttemptDownloadMetrics()
368 metric = metrics::kMetricAttemptDownloadSource; in ReportUpdateAttemptDownloadMetrics()
372 if (payload_download_error_code != metrics::DownloadErrorCode::kUnset) { in ReportUpdateAttemptDownloadMetrics()
373 metric = metrics::kMetricAttemptDownloadErrorCode; in ReportUpdateAttemptDownloadMetrics()
380 metric = metrics::kMetricAttemptConnectionType; in ReportUpdateAttemptDownloadMetrics()
386 static_cast<int>(metrics::ConnectionType::kNumConstants)); in ReportUpdateAttemptDownloadMetrics()
400 string metric = metrics::kMetricSuccessfulUpdatePayloadSizeMiB; in ReportSuccessfulUpdateMetrics()
420 metric = metrics::kMetricSuccessfulUpdateBytesDownloadedMiB; in ReportSuccessfulUpdateMetrics()
441 metric = metrics::kMetricSuccessfulUpdateDownloadSourcesUsed; in ReportSuccessfulUpdateMetrics()
450 metric = metrics::kMetricSuccessfulUpdateDownloadOverheadPercentage; in ReportSuccessfulUpdateMetrics()
459 metric = metrics::kMetricSuccessfulUpdateUrlSwitchCount; in ReportSuccessfulUpdateMetrics()
468 metric = metrics::kMetricSuccessfulUpdateTotalDurationMinutes; in ReportSuccessfulUpdateMetrics()
477 metric = metrics::kMetricSuccessfulUpdateTotalDurationUptimeMinutes; in ReportSuccessfulUpdateMetrics()
486 metric = metrics::kMetricSuccessfulUpdateRebootCount; in ReportSuccessfulUpdateMetrics()
495 metric = metrics::kMetricSuccessfulUpdatePayloadType; in ReportSuccessfulUpdateMetrics()
500 metric = metrics::kMetricSuccessfulUpdateAttemptCount; in ReportSuccessfulUpdateMetrics()
508 metric = metrics::kMetricSuccessfulUpdateUpdatesAbandonedCount; in ReportSuccessfulUpdateMetrics()
519 metrics::RollbackResult result) { in ReportRollbackMetrics()
520 string metric = metrics::kMetricRollbackResult; in ReportRollbackMetrics()
524 metric, value, static_cast<int>(metrics::RollbackResult::kNumConstants)); in ReportRollbackMetrics()
530 string metric = metrics::kMetricEnterpriseRollbackSuccess; in ReportEnterpriseRollbackMetrics()
532 metric = metrics::kMetricEnterpriseRollbackFailure; in ReportEnterpriseRollbackMetrics()
542 metric = metrics::kMetricCertificateCheckUpdateCheck; in ReportCertificateCheckMetrics()
545 metric = metrics::kMetricCertificateCheckDownload; in ReportCertificateCheckMetrics()
559 string metric = metrics::kMetricFailedUpdateCount; in ReportFailedUpdateCount()
571 string metric = metrics::kMetricTimeToRebootMinutes; in ReportTimeToReboot()
584 metrics_lib_->SendEnumToUMA(metrics::kMetricInstallDateProvisioningSource, in ReportInstallDateProvisioningSource()
590 auto metric = metrics::kMetricAttemptInternalErrorCode; in ReportInternalErrorCode()
602 string metric = metrics::kMetricKernelMinVersion; in ReportKeyVersionMetrics()
607 metric = metrics::kMetricKernelMaxRollforwardVersion; in ReportKeyVersionMetrics()
612 metric = metrics::kMetricKernelMaxRollforwardSetSuccess; in ReportKeyVersionMetrics()
622 ? metrics::kMetricSuccessfulUpdateDurationFromSeenTimeRestrictedDays in ReportEnterpriseUpdateSeenToDownloadDays()
623 : metrics::kMetricSuccessfulUpdateDurationFromSeenDays; in ReportEnterpriseUpdateSeenToDownloadDays()