Comparing version 5.3.0 to 5.4.0
@@ -595,2 +595,10 @@ /// <reference types="node" /> | ||
/** | ||
* Drops a shard with the provided number. | ||
* @param shard_id | ||
* @return | ||
* @example | ||
* influx.dropShard(3) | ||
*/ | ||
dropShard(shard_id: number): Promise<void>; | ||
/** | ||
* WritePoints sends a list of points together in a batch to InfluxDB. In | ||
@@ -597,0 +605,0 @@ * each point you must specify the measurement name to write into as well |
@@ -744,2 +744,17 @@ "use strict"; | ||
/** | ||
* Drops a shard with the provided number. | ||
* @param shard_id | ||
* @return | ||
* @example | ||
* influx.dropShard(3) | ||
*/ | ||
dropShard(shard_id) { | ||
return this._pool | ||
.json(this._getQueryOpts({ | ||
q: `drop shard ${shard_id}` | ||
}, 'POST')) | ||
.then(results_1.assertNoErrors) | ||
.then(() => undefined); | ||
} | ||
/** | ||
* WritePoints sends a list of points together in a batch to InfluxDB. In | ||
@@ -746,0 +761,0 @@ * each point you must specify the measurement name to write into as well |
{ | ||
"name": "influx", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"description": "InfluxDB Client", | ||
@@ -81,3 +81,3 @@ "main": "./lib/src/index.js", | ||
"typescript": "3.5.2", | ||
"webpack": "4.35.0" | ||
"webpack": "4.35.2" | ||
}, | ||
@@ -84,0 +84,0 @@ "eslintConfig": { |
142354
3996