[sysmon] Rename sysmon get_* functions
get_ is a really bad name for these functions since get/set are
standard names for getters and setters, and these functions dont
actually get and return a value, they collect and send metrics as a
side effect.
BUG=None
TEST=None
Change-Id: I9677a6043e7a65d6328bb688e84ee8648510bf1e
Reviewed-on: https://chromium-review.googlesource.com/448804
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/scripts/sysmon/puppet_metrics.py b/scripts/sysmon/puppet_metrics.py
index 9ce0882..05b3074 100644
--- a/scripts/sysmon/puppet_metrics.py
+++ b/scripts/sysmon/puppet_metrics.py
@@ -86,7 +86,7 @@
return self.times.get('last_run')
-def get_puppet_summary():
+def collect_puppet_summary():
"""Send Puppet run summary metrics."""
try:
summary = _PuppetRunSummary(LAST_RUN_FILE)