Time_series_data_view – Brocade Network Advisor SAN + IP User Manual v12.3.0 User Manual
Page 2649
Brocade Network Advisor SAN + IP User Manual
2577
53-1003155-01
Views
I
TIME_SERIES_DATA_2_2HOUR.VALUE,
TIME_SERIES_DATA_2_2HOUR.SUM_VALUE
from TIME_SERIES_DATA_2_2HOUR)
union all
select TIME_SERIES_DATA_2_1DAY.TIME_IN_SECONDS,
TIME_SERIES_DATA_2_1DAY.TARGET_TYPE,
TIME_SERIES_DATA_2_1DAY.MEASURE_ID,
TIME_SERIES_DATA_2_1DAY.TARGET_ID,
TIME_SERIES_DATA_2_1DAY.COLLECTOR_ID,
TIME_SERIES_DATA_2_1DAY.MEASURE_INDEX,
TIME_SERIES_DATA_2_1DAY.ME_ID,
TIME_SERIES_DATA_2_1DAY.VALUE,
TIME_SERIES_DATA_2_1DAY.SUM_VALUE
from TIME_SERIES_DATA_2_1DAY
TIME_SERIES_DATA_VIEW
create or replace view TIME_SERIES_DATA_VIEW as
( SELECT de.device_id, cast (de.ip_address as varchar(255)) AS device_ip,
tsd.target_type, de.device_id AS target_id,
de.sys_name AS target_name,
measure.measure_type AS collectible_type,
tsd.measure_id AS collectible_id, tsd.collector_id,
pdc.name AS collector_name,
(measure.name::text || '.'::text) || tsd.measure_index::text
AS collectible_name,
measure.detail AS collectible_detail, tsd.value,
tsd.time_in_seconds, tsd.measure_index
FROM time_series_data_info tsd
JOIN device de ON tsd.target_id = de.device_id
JOIN pm_data_collector pdc ON pdc.id = tsd.collector_id
JOIN measure ON measure.id = tsd.measure_id
WHERE tsd.target_type = 0 OR tsd.target_type = 18
UNION ALL
SELECT de.device_id, cast (de.ip_address as varchar(255)) AS
device_ip,
tsd.target_type, ifs.interface_id AS target_id,
ifs.if_name AS target_name,
measure.measure_type AS collectible_type,
tsd.measure_id AS collectible_id, tsd.collector_id,
pm_data_collector.name AS collector_name,
(measure.name::text || '.'::text) || tsd.measure_index::text
AS collectible_name,
measure.detail AS collectible_detail, tsd.value,
tsd.time_in_seconds, tsd.measure_index
FROM time_series_data_info tsd
JOIN interface ifs ON (tsd.target_type = 1 OR tsd.target_type = 2 OR
tsd.target_type =15) AND tsd.target_id = ifs.interface_id
JOIN device de ON ifs.device_id = de.device_id
JOIN pm_data_collector ON pm_data_collector.id = tsd.collector_id
JOIN measure ON measure.id = tsd.measure_id)
UNION ALL
SELECT de.device_id, cast (de.ip_address as varchar(255)) AS device_ip,
tsd.target_type,
sp.id AS target_id, sp.name AS target_name,
measure.measure_type AS collectible_type,
tsd.measure_id AS collectible_id, tsd.collector_id,
pm_data_collector.name AS collector_name,