|
@ -43,6 +43,7 @@ args.option('clickHousePepEmis', 'clickHouse 项企数据库名称'); |
|
|
args.option('clickHouseProjectManage', 'clickHouse 项目管理数据库名称'); |
|
|
args.option('clickHouseProjectManage', 'clickHouse 项目管理数据库名称'); |
|
|
args.option('clickHouseVcmp', 'clickHouse 视频平台数据库名称'); |
|
|
args.option('clickHouseVcmp', 'clickHouse 视频平台数据库名称'); |
|
|
args.option('clickHouseDataAlarm', 'clickHouse 视频平台数据告警库名称'); |
|
|
args.option('clickHouseDataAlarm', 'clickHouse 视频平台数据告警库名称'); |
|
|
|
|
|
args.option('clickHouseIot', 'clickHouse IOT平台设备信息库名称'); |
|
|
|
|
|
|
|
|
args.option('confirmAlarmAnxinUserId', '确认告警时保存到 ES 的安心云的用户的 id'); |
|
|
args.option('confirmAlarmAnxinUserId', '确认告警时保存到 ES 的安心云的用户的 id'); |
|
|
|
|
|
|
|
@ -98,6 +99,7 @@ const CLICKHOUST_PEP_EMIS = process.env.CLICKHOUST_PEP_EMIS || flags.clickHouseP |
|
|
const CLICKHOUST_PROJECT_MANAGE = process.env.CLICKHOUST_PROJECT_MANAGE || flags.clickHouseProjectManage |
|
|
const CLICKHOUST_PROJECT_MANAGE = process.env.CLICKHOUST_PROJECT_MANAGE || flags.clickHouseProjectManage |
|
|
const CLICKHOUST_VCMP = process.env.CLICKHOUST_VCMP || flags.clickHouseVcmp |
|
|
const CLICKHOUST_VCMP = process.env.CLICKHOUST_VCMP || flags.clickHouseVcmp |
|
|
const CLICKHOUST_DATA_ALARM = process.env.CLICKHOUST_DATA_ALARM || flags.clickHouseDataAlarm |
|
|
const CLICKHOUST_DATA_ALARM = process.env.CLICKHOUST_DATA_ALARM || flags.clickHouseDataAlarm |
|
|
|
|
|
const CLICKHOUST_IOT = process.env.CLICKHOUST_IOT || flags.clickHouseIot |
|
|
|
|
|
|
|
|
const CONFIRM_ALARM_ANXIN_USER_ID = process.env.CONFIRM_ALARM_ANXIN_USER_ID || flags.confirmAlarmAnxinUserId |
|
|
const CONFIRM_ALARM_ANXIN_USER_ID = process.env.CONFIRM_ALARM_ANXIN_USER_ID || flags.confirmAlarmAnxinUserId |
|
|
|
|
|
|
|
@ -118,7 +120,7 @@ if ( |
|
|
|| !API_IOT_AUTH |
|
|
|| !API_IOT_AUTH |
|
|
|| !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK |
|
|
|| !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK |
|
|
|| !CLICKHOUST_URL || !CLICKHOUST_PORT |
|
|
|| !CLICKHOUST_URL || !CLICKHOUST_PORT |
|
|
|| !CLICKHOUST_ANXINCLOUD || !CLICKHOUST_PEP_EMIS || !CLICKHOUST_PROJECT_MANAGE || !CLICKHOUST_VCMP || !CLICKHOUST_DATA_ALARM |
|
|
|| !CLICKHOUST_ANXINCLOUD || !CLICKHOUST_PEP_EMIS || !CLICKHOUST_PROJECT_MANAGE || !CLICKHOUST_VCMP || !CLICKHOUST_DATA_ALARM || !CLICKHOUST_IOT |
|
|
|| !CONFIRM_ALARM_ANXIN_USER_ID |
|
|
|| !CONFIRM_ALARM_ANXIN_USER_ID |
|
|
|| !VCMP_APP_ID || !VCMP_APP_SECRET |
|
|
|| !VCMP_APP_ID || !VCMP_APP_SECRET |
|
|
) { |
|
|
) { |
|
@ -233,6 +235,9 @@ const product = { |
|
|
}, { |
|
|
}, { |
|
|
name: 'dataAlarm', |
|
|
name: 'dataAlarm', |
|
|
db: CLICKHOUST_DATA_ALARM |
|
|
db: CLICKHOUST_DATA_ALARM |
|
|
|
|
|
}, { |
|
|
|
|
|
name: 'iot', |
|
|
|
|
|
db: CLICKHOUST_IOT |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|