Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: infra/services/devicemon/device_metrics.py

Issue 1993443002: Delete devicemon; moving to sysmon. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/services/devicemon/__main__.py ('k') | infra/services/devicemon/test/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/services/devicemon/device_metrics.py
diff --git a/infra/services/devicemon/device_metrics.py b/infra/services/devicemon/device_metrics.py
deleted file mode 100644
index b0ae22b60929b7ba9f6b855a5198c325fef49126..0000000000000000000000000000000000000000
--- a/infra/services/devicemon/device_metrics.py
+++ /dev/null
@@ -1,35 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from infra_libs import ts_mon
-
-
-cpu_temp_metric = ts_mon.FloatMetric('dev/cpu/temperature',
- description=u"Temperature (°C) of the device's CPU")
-battery_temp_metric = ts_mon.FloatMetric('dev/battery/temperature',
- description=u"Temperature (°C) of the device's battery")
-battery_charge_metric = ts_mon.FloatMetric('dev/battery/charge',
- description="Charge (%) of the device's battery")
-device_status_metric = ts_mon.StringMetric('dev/status',
- description='Status of the device')
-
-
-def set_cpu_temp(_device, metric_fields):
- cpu_temp = 0 # todo: get cpu temp
- cpu_temp_metric.set(cpu_temp, metric_fields)
-
-
-def set_battery_temp(_device, metric_fields):
- battery_temp = 0 # todo: get battery temp
- battery_temp_metric.set(battery_temp, metric_fields)
-
-
-def set_battery_charge(_device, metric_fields):
- battery_charge = 0 # todo: get battery charge
- battery_charge_metric.set(battery_charge, metric_fields)
-
-
-def set_device_status(_device, metric_fields, status='unknown'):
- device_status_metric.set(status, metric_fields)
« no previous file with comments | « infra/services/devicemon/__main__.py ('k') | infra/services/devicemon/test/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698