Implemented CheckWriteApi by writing and then deleting a TestPoint

This commit is contained in:
2021-11-26 18:37:34 +01:00
parent ddf39b9433
commit 3c29ed2000
2 changed files with 39 additions and 0 deletions

View File

@@ -31,6 +31,10 @@ if(errorMsg){
org: env.INFLUX_ORG,
name: env.INFLUX_BUCKET
})})
.then((res) => {return InfluxChecks.checkWriteApi(influxDb, {
org: env.INFLUX_ORG,
name: env.INFLUX_BUCKET
})})
.catch((err) => {
if(err) {
logger.error("Error whilst checking influx:");