@kronos-integration/service-influxdb 1.2.13 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-influxdb",
3
- "version": "1.2.13",
3
+ "version": "1.3.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -55,6 +55,15 @@ export class ServiceInfluxdb extends Service {
55
55
  return `${this.name}(${this.url})`;
56
56
  }
57
57
 
58
+ endpointOnDemand(expression, from) {
59
+ if (expression.indexOf(".") >= 0) {
60
+ this.info(`create endpoint ${expression}`);
61
+ const endpoint = new PointEndpoint(expression, this);
62
+ this.addEndpoint(endpoint);
63
+ return endpoint;
64
+ }
65
+ }
66
+
58
67
  endpointFactoryFromConfig(name, definition, ic) {
59
68
  if (name.indexOf(".") >= 0) {
60
69
  return PointEndpoint;
@@ -3,6 +3,7 @@ export { PointEndpoint };
3
3
  * influxdb client.
4
4
  */
5
5
  export class ServiceInfluxdb extends Service {
6
+ endpointOnDemand(expression: any, from: any): PointEndpoint;
6
7
  endpointFactoryFromConfig(name: any, definition: any, ic: any): any;
7
8
  client: InfluxDB;
8
9
  writeApi: import("@influxdata/influxdb-client").WriteApi;