'use strict'; const network = require('../../controllers/analysis/network'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/organizations/:pepProjectId/struc'] = { content: '获取项目下的结构物信息', visible: true }; router.get('/organizations/:pepProjectId/struc', network.getOrganizationsStruc) app.fs.api.logAttr['GET/things/:iotaThingId/deploy'] = { content: '获取设备部署信息', visible: true }; router.get('/things/:iotaThingId/deploy', network.getThingsDeploy) app.fs.api.logAttr['GET/meta/things/:iotaThingId/devices'] = { content: '获取部署设备原型', visible: true }; router.get('/meta/things/:iotaThingId/devices', network.getDeviceMetaDeployed) app.fs.api.logAttr['GET/metrics/things/:iotaThingId/devices/link_status'] = { content: '获取设备在线状态/以结构物id集体获取', visible: true }; router.get('/metrics/things/:iotaThingId/devices/link_status', network.iotaLinkStatus) app.fs.api.logAttr['GET/meta/things/:iotaThingId/devices'] = { content: '原始数据查询失败', visible: false }; router.get('/meta/things/:iotaThingId/devices', network.findDeviceMetaDeployed) app.fs.api.logAttr['POST/sensors/last/data'] = { content: '原始数据查询失败', visible: true }; router.post('/sensors/last/data', network.findSensorLastData) app.fs.api.logAttr['POST/devices/alarms'] = { content: '获取多个设备的告警信息', visible: false }; router.post('/devices/alarms', network.findAlarmsDevices) app.fs.api.logAttr['POST/devices/cardStatus'] = { content: '获取物联网卡状态', visible: false }; router.post('/devices/cardStatus', network.findDevicesCardStatus); // app.fs.api.logAttr['GET/systemAvailability'] = { content: '获取系统可用性', visible: true }; // router.get('/systemAvailability', operationData.getSystemAvailability) // app.fs.api.logAttr['GET/problemType'] = { content: '获取故障类型', visible: true }; // router.get('/problemType', operationData.getProblemType) // app.fs.api.logAttr['GET/operationsPersonnel'] = { content: '获取运维人员', visible: true }; // router.get('/operationsPersonnel', operationData.getOperationsPersonnel) }