This commit is contained in:
parent
3c09c04066
commit
61509c0000
@ -129,3 +129,20 @@ create or replace view lora_sht21_v as
|
||||
where m.application = 'de-hottis-app01' and
|
||||
m.attributes->>'DeviceType' = 'hottis-gy21' and
|
||||
m.device = d.label;
|
||||
|
||||
create or replace view ntp_server_snmp_v as
|
||||
select time,
|
||||
device,
|
||||
cast(values->'load1'->>'value' as float) as laLoad1,
|
||||
cast(values->'lan-in'->>'value' as int) as lanInOctetsPerSeconds,
|
||||
cast(values->'lan-out'->>'value' as int) as lanOutOctetsPerSeconds
|
||||
from measurements
|
||||
where application = 'SNMP' and device = '172.16.13.10';
|
||||
|
||||
create or replace view ntp_server_variables_v as
|
||||
select time,
|
||||
device,
|
||||
cast(values->'rootdisp'->>'value' as float) as rootdisp
|
||||
from measurements
|
||||
where application = 'TSM' and device = '172.16.13.10';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user