mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Update all applications to store metrics (#7853)
* Update all applications to store metrics * fix db schema * Add glue test
This commit is contained in:
committed by
Neil Lathwood
parent
0dd3ec25d3
commit
b620692426
@@ -166,6 +166,10 @@ class CommonFunctionsTest extends \PHPUnit_Framework_TestCase
|
||||
// $expected = array('bill_data.bill_id', 'bill_ports.port_id', 'ports.device_id');
|
||||
// $this->assertSame($expected, ResolveGlues(array('bill_data'), 'device_id'));
|
||||
|
||||
$expected = array('application_metrics.app_id', "applications.device_id");
|
||||
$this->assertSame($expected, ResolveGlues(array('application_metrics'), 'device_id'));
|
||||
|
||||
|
||||
$expected = array('state_translations.state_index_id', 'sensors_to_state_indexes.sensor_id', 'sensors.device_id');
|
||||
$this->assertSame($expected, ResolveGlues(array('state_translations'), 'device_id'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user