shill: add cumulative metrics for time online
This uses the CumulativeMetrics class to accumulate
and report daily connectivity on a per-technology basis
(wifi, cellular, ...). The new histograms report (at most)
one sample per day per device, and each sample indicates
how much (active) time the device spent connected via
various types of technology.
To test this, I ran it on a device for > 24 hours, switching
between WiFi and Ethernet, and verified that the histograms
samples were as expected.
CQ-DEPEND=CL:1171256,CL:1192408
BUG=chromium:832145
TEST=manual (see above)
Change-Id: I69bee9e9157ae1dd7a78c702192032052e089d07
Reviewed-on: https://chromium-review.googlesource.com/1121419
Commit-Ready: Luigi Semenzato <semenzato@chromium.org>
Tested-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Luigi Semenzato <semenzato@chromium.org>
Reviewed-by: Kirtika Ruchandani <kirtika@chromium.org>
3 files changed