influxdb-client 1.12.0.pre.1894 → 1.12.1.pre.2044

Sign up to get free protection for your applications and to get access to all the features.
data/.circleci/config.yml DELETED
@@ -1,158 +0,0 @@
1
- #
2
- # The MIT License
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
-
23
- version: 2.1
24
-
25
- commands:
26
- influxdb-onboarding:
27
- steps:
28
- - run:
29
- name: "Post onBoarding request to InfluxDB 2"
30
- command: ./bin/influxdb-onboarding.sh
31
- prepare:
32
- description: "Prepare environment to tests"
33
- steps:
34
- - checkout
35
- - influxdb-onboarding
36
- test:
37
- parameters:
38
- ruby-image:
39
- type: string
40
- steps:
41
- - restore_cache:
42
- name: Restoring Gem Cache
43
- keys:
44
- - &cache-key gem-cache-{{ checksum "influxdb-client.gemspec" }}-<< parameters.ruby-image >>
45
- - gem-cache-{{ checksum "influxdb-client.gemspec" }}
46
- - gem-cache-
47
- - run:
48
- name: Install dependencies
49
- command: |
50
- gem install bundler
51
- bundle config set path 'vendor/bundle'
52
- bundle install --jobs=4 --retry=3
53
- - run:
54
- name: Static code analyze
55
- command: |
56
- bundle exec rake rubocop
57
- - run:
58
- name: Run tests
59
- command: |
60
- export MINITEST_REPORTER=JUnitReporter
61
- bundle exec rake test
62
- - save_cache:
63
- name: Saving Gem Cache
64
- key: *cache-key
65
- paths:
66
- - ./vendor/bundle
67
- when: always
68
- storing-test-results:
69
- steps:
70
- - store_test_results:
71
- path: test/reports
72
-
73
- jobs:
74
- tests-ruby:
75
- parameters:
76
- ruby-image:
77
- type: string
78
- default: &default-ruby-image "circleci/ruby:2.6-stretch"
79
- influxdb-image:
80
- type: string
81
- default: &default-influxdb-image "influxdb:v2.0.4"
82
- docker:
83
- - image: << parameters.ruby-image >>
84
- - image: &influx-image quay.io/influxdb/<< parameters.influxdb-image >>
85
- environment:
86
- INFLUXD_HTTP_BIND_ADDRESS: :8086
87
- steps:
88
- - prepare
89
- - test:
90
- ruby-image: << parameters.ruby-image >>
91
- - storing-test-results
92
-
93
- deploy-preview:
94
- docker:
95
- - image: *default-ruby-image
96
- steps:
97
- - run:
98
- name: Early return if this build is from a forked repository
99
- command: |
100
- if [[ $CIRCLE_PROJECT_USERNAME != "influxdata" ]]; then
101
- echo "Nothing to do for forked repositories, so marking this step successful"
102
- circleci step halt
103
- fi
104
- - checkout
105
- - run:
106
- name: Setup Rubygems
107
- command: bash .circleci/setup-rubygems.sh
108
- - run:
109
- name: Build a Gem bundle
110
- command: |
111
- gem build influxdb-client.gemspec
112
- - run:
113
- name: Deploy pre-release into https://rubygems.org
114
- command: |
115
- gem push influxdb-client-*.pre.$CIRCLE_BUILD_NUM.gem
116
- workflows:
117
- version: 2
118
- build:
119
- jobs:
120
- - tests-ruby:
121
- name: ruby-3.0
122
- ruby-image: "circleci/ruby:3.0-buster"
123
- - tests-ruby:
124
- name: ruby-2.7
125
- ruby-image: "circleci/ruby:2.7-buster"
126
- - tests-ruby:
127
- name: ruby-2.6
128
- - tests-ruby:
129
- name: ruby-2.6-nightly
130
- influxdb-image: "influxdb2:nightly"
131
- - tests-ruby:
132
- name: ruby-2.5
133
- ruby-image: "circleci/ruby:2.5-stretch"
134
- - tests-ruby:
135
- name: ruby-2.4
136
- ruby-image: "circleci/ruby:2.4-stretch"
137
- - deploy-preview:
138
- requires:
139
- - ruby-3.0
140
- - ruby-2.7
141
- - ruby-2.6
142
- - ruby-2.6-nightly
143
- - ruby-2.5
144
- - ruby-2.4
145
- filters:
146
- branches:
147
- only: master
148
-
149
- nightly:
150
- triggers:
151
- - schedule:
152
- cron: "0 0 * * *"
153
- filters:
154
- branches:
155
- only:
156
- - master
157
- jobs:
158
- - tests-ruby
@@ -1,3 +0,0 @@
1
- mkdir ~/.gem || true
2
- echo -e "---\r\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials
3
- chmod 0600 ~/.gem/credentials
data/.codecov.yml DELETED
@@ -1,3 +0,0 @@
1
- ignore:
2
- - "lib/influxdb2/client/models/**/*"
3
- - "test/influxdb/**/*"
@@ -1,34 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- ---
5
-
6
- <!--
7
-
8
- Thank you for reporting a bug.
9
-
10
- * Please add a :+1: or comment on a similar existing bug report instead of opening a new one.
11
- * https://github.com/influxdata/influxdb-client-ruby/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3Aclosed+sort%3Aupdated-desc+label%3Abug+
12
- * Please check whether the bug can be reproduced with the latest release.
13
- * The fastest way to fix a bug is to open a Pull Request.
14
- * https://github.com/influxdata/influxdb-client-ruby/pulls
15
-
16
- -->
17
-
18
- __Steps to reproduce:__
19
- List the minimal actions needed to reproduce the behavior.
20
-
21
- 1. ...
22
- 2. ...
23
- 3. ...
24
-
25
- __Expected behavior:__
26
- Describe what you expected to happen.
27
-
28
- __Actual behavior:__
29
- Describe What actually happened.
30
-
31
- __Specifications:__
32
- - Client Version:
33
- - InfluxDB Version:
34
- - Platform:
@@ -1,28 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Opening a feature request kicks off a discussion
4
- ---
5
-
6
- <!--
7
-
8
- Thank you for suggesting an idea to improve this client.
9
-
10
- * Please add a :+1: or comment on a similar existing feature request instead of opening a new one.
11
- * https://github.com/influxdata/influxdb-client-ruby/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+is%3Aclosed+sort%3Aupdated-desc+label%3A%22enhancement%22+
12
-
13
- -->
14
-
15
- __Proposal:__
16
- Short summary of the feature.
17
-
18
- __Current behavior:__
19
- Describe what currently happens.
20
-
21
- __Desired behavior:__
22
- Describe what you want.
23
-
24
- __Alternatives considered:__
25
- Describe other solutions or features you considered.
26
-
27
- __Use case:__
28
- Why is this important (helps with prioritizing requests)?
@@ -1,16 +0,0 @@
1
- Closes #
2
-
3
- ## Proposed Changes
4
-
5
- _Briefly describe your proposed changes:_
6
-
7
- ## Checklist
8
-
9
- <!-- Checkboxes below this note can be erased if not applicable to your Pull Request. -->
10
-
11
- - [ ] CHANGELOG.md updated
12
- - [ ] Rebased/mergeable
13
- - [ ] A test has been added if appropriate
14
- - [ ] `rake test` completes successfully
15
- - [ ] Commit messages are in [semantic format](https://seesparkbox.com/foundry/semantic_commit_messages)
16
- - [ ] Sign [CLA](https://influxdata.com/community/cla/) (if not already signed)
data/.github/semantic.yml DELETED
@@ -1,3 +0,0 @@
1
- # docs: https://github.com/probot/semantic-pull-requests#configuration
2
- # Always validate the PR title AND all the commits
3
- titleAndCommits: true
data/.gitignore DELETED
@@ -1,16 +0,0 @@
1
- /.bundle/
2
- /.idea/
3
- /.yardoc
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /Gemfile.lock
11
- /test/reports/
12
- .rakeTasks
13
- /influxdb-client-*.gem
14
- /TAGS
15
- /vendor
16
- /.openapi-generator/
data/.rubocop.yml DELETED
@@ -1,43 +0,0 @@
1
- #
2
- # The MIT License
3
- #
4
- # Permission is hereby granted, free of charge, to any person obtaining a copy
5
- # of this software and associated documentation files (the "Software"), to deal
6
- # in the Software without restriction, including without limitation the rights
7
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- # copies of the Software, and to permit persons to whom the Software is
9
- # furnished to do so, subject to the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be included in
12
- # all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- # THE SOFTWARE.
21
- #
22
-
23
- AllCops:
24
- Exclude:
25
- - 'lib/influxdb2/client/models/**/*'
26
- - 'vendor/**/*'
27
- Naming/FileName:
28
- Exclude:
29
- - 'lib/influxdb-client.rb'
30
- Metrics/LineLength:
31
- Max: 120
32
- Metrics/MethodLength:
33
- Max: 50
34
- Metrics/ClassLength:
35
- Max: 300
36
- Metrics/AbcSize:
37
- Max: 50
38
- Metrics/CyclomaticComplexity:
39
- Max: 15
40
- Metrics/PerceivedComplexity:
41
- Max: 15
42
- Metrics/ParameterLists:
43
- Max: 10
data/Gemfile DELETED
@@ -1,24 +0,0 @@
1
- # The MIT License
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
20
-
21
- source 'https://rubygems.org'
22
-
23
- # Specify your gem's dependencies in influxdb-client.gemspec
24
- gemspec
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- #!/usr/bin/env bash
4
-
5
- SCRIPT_PATH="$( cd "$(dirname "$0")" || exit ; pwd -P )"
6
-
7
- # delete old sources
8
- rm "${SCRIPT_PATH}"/../lib/influxdb2/client/models/*
9
-
10
- # Generate client
11
- cd "${SCRIPT_PATH}"/ || exit
12
- mvn org.openapitools:openapi-generator-maven-plugin:generate
13
-
14
- # Move sources
15
- mkdir -p "${SCRIPT_PATH}"/../lib/influxdb2/client/models
16
- mv "${SCRIPT_PATH}"/../lib/influx_db2/models/* "${SCRIPT_PATH}"/../lib/influxdb2/client/models
17
-
18
- cd "${SCRIPT_PATH}"/../lib/influxdb2/client/models || exit
19
- rm -r $(ls | grep -v "\<health_check.rb\>\|\<dialect.rb\>\|\<query.rb\>\|\<delete_predicate_request.rb\>")
20
-
21
- # Clean
22
- rmdir "${SCRIPT_PATH}"/../lib/influx_db2/models
23
- rmdir "${SCRIPT_PATH}"/../lib/influx_db2/
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env bash
2
- #
3
- # The MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
-
24
- set -e
25
-
26
- echo "Wait to start InfluxDB 2.0"
27
- wget -S --spider --tries=20 --retry-connrefused --waitretry=5 http://localhost:8086/metrics
28
-
29
- echo
30
- echo "Post onBoarding request, to setup initial user (my-user@my-password), org (my-org) and bucketSetup (my-bucket)"
31
- echo
32
- curl -i -X POST http://localhost:8086/api/v2/setup -H 'accept: application/json' \
33
- -d '{
34
- "username": "my-user",
35
- "password": "my-password",
36
- "org": "my-org",
37
- "bucket": "my-bucket",
38
- "token": "my-token"
39
- }'
@@ -1,61 +0,0 @@
1
- #!/usr/bin/env bash
2
- #
3
- # The MIT License
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to deal
7
- # in the Software without restriction, including without limitation the rights
8
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- # copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- # THE SOFTWARE.
22
- #
23
-
24
- set -e
25
-
26
- DEFAULT_DOCKER_REGISTRY="quay.io/influxdb/"
27
- DOCKER_REGISTRY="${DOCKER_REGISTRY:-$DEFAULT_DOCKER_REGISTRY}"
28
-
29
- DEFAULT_INFLUXDB_V2_REPOSITORY="influxdb"
30
- DEFAULT_INFLUXDB_V2_VERSION="v2.0.4"
31
- INFLUXDB_V2_REPOSITORY="${INFLUXDB_V2_REPOSITORY:-$DEFAULT_INFLUXDB_V2_REPOSITORY}"
32
- INFLUXDB_V2_VERSION="${INFLUXDB_V2_VERSION:-$DEFAULT_INFLUXDB_V2_VERSION}"
33
- INFLUXDB_V2_IMAGE=${DOCKER_REGISTRY}${INFLUXDB_V2_REPOSITORY}:${INFLUXDB_V2_VERSION}
34
-
35
- SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
36
-
37
- docker kill influxdb_v2 || true
38
- docker rm influxdb_v2 || true
39
- docker network rm influx_network || true
40
- docker network create -d bridge influx_network --subnet 192.168.0.0/24 --gateway 192.168.0.1
41
-
42
- #
43
- # InfluxDB 2.0
44
- #
45
- echo
46
- echo "Restarting InfluxDB 2.0 [${INFLUXDB_V2_IMAGE}] ... "
47
- echo
48
-
49
- docker pull "${INFLUXDB_V2_IMAGE}" || true
50
- docker run \
51
- --detach \
52
- --env INFLUXD_HTTP_BIND_ADDRESS=:8086 \
53
- --name influxdb_v2 \
54
- --network influx_network \
55
- --publish 8086:8086 \
56
- "${INFLUXDB_V2_IMAGE}"
57
-
58
- #
59
- # Post onBoarding request to InfluxDB 2
60
- #
61
- "${SCRIPT_PATH}"/influxdb-onboarding.sh