influxdb-client 2.5.0.pre.4923 → 2.5.0.pre.5058
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/influxdb-client.rb +1 -1
- data/lib/influxdb2/client/client.rb +4 -4
- data/lib/influxdb2/client/flux_csv_parser.rb +1 -1
- data/lib/influxdb2/client/{invocable_scripts_api.rb → invokable_scripts_api.rb} +1 -1
- data/lib/influxdb2/client/models/script_invocation_params.rb +3 -1
- data/test/influxdb/{invocable_scripts_api_test.rb → invokable_scripts_api_test.rb} +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67562300ba9331a4bcdc298ed104c7b93019b2aab116dd20aefe31f5771c0984
|
4
|
+
data.tar.gz: 241813d46bc486d29a9da9de9d132efa525d0ee0c7c06fda2e5c1bbbe40dc51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37edf56e71864f0069596f175e341579ab54aaff409c223ccc3f5733ba73d0cd5db2a91283f4736194aa13fe970f93a7f5d47f32eec9a75fab25f19fdf37a3a9
|
7
|
+
data.tar.gz: 1264330ecf7d6a0f9e3723ba3bf8a54be5007bd7c84be1beaac502eebef8f68c57f8aeaea9e8dfe4f566d57909b65ff303cfff065f342ce111636b4693d694ef
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
## 2.5.0 [unreleased]
|
2
2
|
|
3
|
+
### Breaking Changes
|
4
|
+
1. [#103](https://github.com/influxdata/influxdb-client-ruby/pull/103): Rename `InvocableScripts` to `InvokableScripts`
|
5
|
+
|
3
6
|
## 2.4.0 [2022-04-19]
|
4
7
|
|
5
8
|
### Features
|
6
|
-
1. [#101](https://github.com/influxdata/influxdb-client-ruby/pull/101): Add `
|
9
|
+
1. [#101](https://github.com/influxdata/influxdb-client-ruby/pull/101): Add `InvokableScriptsApi` to create, update, list, delete and invoke scripts by seamless way
|
7
10
|
|
8
11
|
## 2.3.0 [2022-03-18]
|
9
12
|
|
data/lib/influxdb-client.rb
CHANGED
@@ -27,7 +27,7 @@ require 'influxdb2/client/query_api'
|
|
27
27
|
require 'influxdb2/client/delete_api'
|
28
28
|
require 'influxdb2/client/health_api'
|
29
29
|
require 'influxdb2/client/ping_api'
|
30
|
-
require 'influxdb2/client/
|
30
|
+
require 'influxdb2/client/invokable_scripts_api'
|
31
31
|
require 'influxdb2/client/point'
|
32
32
|
require 'influxdb2/client/flux_table'
|
33
33
|
require 'influxdb2/client/write_retry'
|
@@ -85,11 +85,11 @@ module InfluxDB2
|
|
85
85
|
DeleteApi.new(options: @options)
|
86
86
|
end
|
87
87
|
|
88
|
-
# Create an
|
88
|
+
# Create an InvokableScripts API instance.
|
89
89
|
#
|
90
|
-
# @return [
|
91
|
-
def
|
92
|
-
|
90
|
+
# @return [InvokableScriptsApi] New instance of InvokableScriptsApi.
|
91
|
+
def create_invokable_scripts_api
|
92
|
+
InvokableScriptsApi.new(options: @options)
|
93
93
|
end
|
94
94
|
|
95
95
|
# Get the health of an instance.
|
@@ -25,7 +25,7 @@ module InfluxDB2
|
|
25
25
|
#
|
26
26
|
# API invokable scripts let you assign scripts to API endpoints and then execute them as standard REST operations
|
27
27
|
# in InfluxDB Cloud.
|
28
|
-
class
|
28
|
+
class InvokableScriptsApi < DefaultApi
|
29
29
|
# @param [Hash] options The options to be used by the client.
|
30
30
|
def initialize(options:)
|
31
31
|
super(options: options)
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
require 'test_helper'
|
22
22
|
|
23
|
-
class
|
23
|
+
class InvokableScriptsApiTest < MiniTest::Test
|
24
24
|
def setup
|
25
25
|
WebMock.disable_net_connect!
|
26
26
|
@client = InfluxDB2::Client.new('http://localhost:8086', 'my-token',
|
@@ -35,7 +35,7 @@ class InvocableScriptsApiTest < MiniTest::Test
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def test_create_instance
|
38
|
-
|
39
|
-
refute_nil
|
38
|
+
invokable_scripts_api = @client.create_invokable_scripts_api
|
39
|
+
refute_nil invokable_scripts_api
|
40
40
|
end
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.0.pre.
|
4
|
+
version: 2.5.0.pre.5058
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Bednar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,7 +128,7 @@ files:
|
|
128
128
|
- lib/influxdb2/client/flux_table.rb
|
129
129
|
- lib/influxdb2/client/health_api.rb
|
130
130
|
- lib/influxdb2/client/influx_error.rb
|
131
|
-
- lib/influxdb2/client/
|
131
|
+
- lib/influxdb2/client/invokable_scripts_api.rb
|
132
132
|
- lib/influxdb2/client/models/delete_predicate_request.rb
|
133
133
|
- lib/influxdb2/client/models/dialect.rb
|
134
134
|
- lib/influxdb2/client/models/health_check.rb
|
@@ -151,7 +151,7 @@ files:
|
|
151
151
|
- test/influxdb/delete_api_integration_test.rb
|
152
152
|
- test/influxdb/delete_api_test.rb
|
153
153
|
- test/influxdb/flux_csv_parser_test.rb
|
154
|
-
- test/influxdb/
|
154
|
+
- test/influxdb/invokable_scripts_api_test.rb
|
155
155
|
- test/influxdb/point_test.rb
|
156
156
|
- test/influxdb/query_api_integration_test.rb
|
157
157
|
- test/influxdb/query_api_stream_test.rb
|
@@ -193,7 +193,7 @@ test_files:
|
|
193
193
|
- test/influxdb/delete_api_integration_test.rb
|
194
194
|
- test/influxdb/delete_api_test.rb
|
195
195
|
- test/influxdb/flux_csv_parser_test.rb
|
196
|
-
- test/influxdb/
|
196
|
+
- test/influxdb/invokable_scripts_api_test.rb
|
197
197
|
- test/influxdb/point_test.rb
|
198
198
|
- test/influxdb/query_api_integration_test.rb
|
199
199
|
- test/influxdb/query_api_stream_test.rb
|