mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Refractor health (#13022)
* Add power consumed * Revert "Add power consumed" This reverts commit 424554ac04bd340de2fd962cb6808045024ef783. * Refractor Device health sensors * fix style * fit style * fix style
This commit is contained in:
@@ -44,6 +44,38 @@ class Sensor extends DeviceRelatedModel
|
||||
'percent' => 'percent',
|
||||
];
|
||||
|
||||
public static $text = [
|
||||
'airflow' => 'Airflow',
|
||||
'ber' => 'Bit Error Rate',
|
||||
'charge' => 'Battery Charge',
|
||||
'chromatic_dispersion' => 'Chromatic Dispersion',
|
||||
'cooling' => 'Cooling',
|
||||
'count' => 'Count',
|
||||
'current' => 'Current',
|
||||
'dbm' => 'dBm',
|
||||
'delay' => 'Delay',
|
||||
'eer' => 'Energy Efficiency Ratio',
|
||||
'fanspeed' => 'Fanspeed',
|
||||
'frequency' => 'Frequency',
|
||||
'humidity' => 'Humidity',
|
||||
'load' => 'Load',
|
||||
'loss' => 'Loss',
|
||||
'power' => 'Power',
|
||||
'power_consumed' => 'Power Consumed',
|
||||
'power_factor' => 'Power Factor',
|
||||
'pressure' => 'Pressure',
|
||||
'quality_factor' => 'Quality factor',
|
||||
'runtime' => 'Runtime remaining',
|
||||
'signal' => 'Signal',
|
||||
'snr' => 'SNR',
|
||||
'state' => 'State',
|
||||
'temperature' => 'Temperature',
|
||||
'tv_signal' => 'TV signal',
|
||||
'voltage' => 'Voltage',
|
||||
'waterflow' => 'Water Flow Rate',
|
||||
'percent' => 'Percent',
|
||||
];
|
||||
|
||||
// ---- Helper Functions ----
|
||||
|
||||
public function classDescr()
|
||||
|
Reference in New Issue
Block a user