Commit Graph

226 Commits (e6aa5023eb4e54dbde7e8133ea426aec46fda9c2)

Author SHA1 Message Date
Phil Sorber 7d44293506 Update comments to be more idiomatic. 2016-02-09 09:39:30 -07:00
Phil Sorber ed650cf4d5 Add Ping() to v2 client. 2016-02-09 09:00:36 -07:00
Jason Wilder dc74bb53d0 Merge pull request #4299 from arussellsaw/feature/client-reject-uint64
Reject uint64 Client.Point.Field values
2016-02-08 12:52:17 -07:00
Jason Wilder ddcdd97416 Merge pull request #5541 from influxdata/tls-client
Support for adding custom TLS Config for HTTP client
2016-02-08 11:58:52 -07:00
Cameron Sparr df1980ebe5 Support for adding custom TLS Config for HTTP client 2016-02-04 13:09:27 -07:00
Alex Russell-Saw 5bde459f01 client: reject uint64 Client.Point.Field values 2016-02-01 16:17:47 +00:00
Bhargav 22bfc7cefd Fix missed error handling case. 2016-01-19 18:09:08 +05:30
Bhargav d23d515636 Update log statements, markdown spacing.
Change log statements to panic on error.
2016-01-19 18:05:30 +05:30
Farshid Tavakolizadeh 1058a669fc Updated queryDB func
The convenience function was ignoring query errors.
2016-01-12 11:50:35 +01:00
Bhargav 822bd72b0f Update README.md to include simple error handling.
Adds clarity to the values returned by specific methods.
2016-01-10 01:43:13 +05:30
Mike Glazer c049ebfa43 Support connecting to InfluxDB with the client without HTTPS Verification
The V2 client code supports this, however, the V1 client code didn't,
and the argument to support this just had to be added to the CLI
2015-12-29 09:03:16 -08:00
Cameron Sparr 616da49019 It _is_ recommended to send data with a timestamp
closes #5061
2015-12-15 18:33:36 -06:00
Philip O'Toole c3928b243b Tweak expected test output for client timeouts
Need to understand further why this fails on Circle, but passes fine
with Go 1.5.2 on the branch. Unblocking builds for now, test code only.
2015-12-09 17:29:38 -08:00
Philip O'Toole 7bae79cb71 Move to Go 1.5.2 2015-12-09 11:53:00 -08:00
Farshid Tavakolizadeh 460275a254 go-client: changed statements' Err type to string, tagged by `error` 2015-12-08 23:28:42 +01:00
Sergey Kamardin 7b3420b258 Also HTTPConfig 2015-11-18 19:54:37 +03:00
Sergey Kamardin fa0bf6994d Rename `NewClient` to `NewHTTPClient` 2015-11-18 19:51:58 +03:00
Cameron Sparr e32d97e770 Don't send data _without_ a timestamp 2015-11-12 15:27:18 -07:00
Cameron Sparr 909f5e8ae3 Small comment fixups 2015-11-12 15:18:04 -07:00
Cameron Sparr b0e9f7e844 Refactor HTTP client for consistency with UDP
This makes error handling easier across clients and more consistent.
Also eliminates the need for users to parse their own URLs first,
because that doesn't even guarantee the URLs will be correct http URLs
2015-11-12 14:22:16 -07:00
Philip O'Toole 3cab8fac02 Revert to Go 1.4.2
This is not passing 'go vet' under 1.4.2.
2015-11-11 15:48:37 -08:00
Cameron Sparr cc077f6fb0 Create a new query request for each Query 2015-11-06 15:22:42 -07:00
Cameron Sparr 7d3c84f92a Another revision to the v2 client godoc, lowercase letters all around 2015-11-06 12:21:22 -07:00
Cameron Sparr 5bcb3cbe41 Fixup the v2 client godoc examples 2015-11-06 09:59:21 -07:00
Nicholas Katsaros 8fe41e1870 Increase performance of the UDP client 2015-11-05 13:53:05 -05:00
Cameron Sparr e2db577e0f Implement a UDP client
closes #4647
2015-11-04 14:18:14 -07:00
Miguel Xavier Penha Neto 9051451e00 Fix ipv6 parsing in client
Old implementation of function ParseConnectionString would parse ipv6 incorrectly

Added a unit test for this
2015-11-01 19:38:54 -02:00
Jason Wilder 7508a2a252 Merge pull request #4587 from influxdb/jw-nan
Prevent NaN float values from being stored
2015-10-28 09:28:04 -06:00
Philip O'Toole 6311a2bf0a Merge pull request #4518 from Lanzafame/master
Updated godoc.org link to v2 docs.
2015-10-27 18:13:17 -07:00
Jason Wilder 0926b19e6b Prevent creating points with NaN float values
Float values are not supported in the existing engine and the tsm1
engines.  This changes NewPoint to return an error if a field value
contains a NaN field.  It also allows us to validate fields to prevent
other unsupported types from sneaking in through other input plugins.
2015-10-27 17:12:52 -06:00
ch33hau 2924616585 Fix typo and double spaces for comments 2015-10-26 09:37:02 +08:00
alanzafame 20dcb881f0 Updated godoc.org link to v2 docs. 2015-10-21 09:06:32 +10:00
Cameron Sparr 66a31ee9bc Add more public point functions for v2 client
Closes #4505
2015-10-19 17:55:26 -06:00
Sean Beckett c0708e5977 Merge pull request #4483 from charleswhchan/fix-typo-1
Typo: omitt --> omit.
2015-10-19 10:40:24 -07:00
samaitra f9cceb1a53 README client example bug #4488 2015-10-18 14:09:37 +05:30
Charles Chan e0d4ccd1a7 Typo: omitt --> omit. 2015-10-17 07:30:07 -07:00
Cameron Sparr 0c97695d5a Change godoc to reference client v2 2015-10-15 18:36:29 -06:00
Cameron Sparr 696838a8c2 InfluxDB client v2
Closes #4387
2015-10-15 15:53:48 -06:00
Samer Kanjo a20a0bce56 ref #4098 lint client package 2015-10-13 19:40:51 -05:00
Nathaniel Cook ac5bd8a6c2 make client.Write default to c.precision if none is given 2015-10-07 15:36:09 -06:00
nooproblem d5d2ca4677 Removing deprecated JSON Protocol from README.md
The following panic is produced when running the code from the 'Find the last 10 _shapes_ records' section:

panic: interface conversion: interface is string, not json.Number

I have changed the type assertion from type json.Number to type string and amended the log output for the string type.
2015-09-21 19:33:44 +01:00
Cory LaNou ba830be3b9 actually move influxql.Row* -> models.Row* 2015-09-16 16:32:50 -05:00
Cory LaNou d19a510ad2 refactor Points and Rows to dedicated packages 2015-09-16 15:33:08 -05:00
Cameron Sparr 6d4319d244 Add function to tsdb.point to get line-protocol string in the correct units 2015-09-16 10:53:59 -07:00
Cory LaNou c70b503f00 go fmt 2015-09-15 16:09:58 -05:00
Sébastien Bouchex Bellomié 5656ba167f Added precision support in cmd client 2015-09-11 10:04:18 +02:00
Sébastien Bouchex Bellomié f8a827d9d2 Added precision support in cmd client 2015-09-09 22:54:57 +02:00
Sébastien Bouchex Bellomié 23a606bafc Added precision support in cmd client 2015-09-09 22:17:48 +02:00
Nick Robinson 40a18d82a8 Updating imports in README example
Updating imports in the README example so that it will compile
2015-08-30 07:51:18 -04:00
Philip O'Toole 841319e8a0 Account for older-style response in tests
It appears this response may still be emitted sometimes.
2015-08-27 16:23:59 -07:00
Philip O'Toole 55d71a075c Explicit sync with test server to avoid races
From
516f0d1c90

"Note that we use a channel send here and not a close.
The race detector doesn't know that we're waiting for a timeout
and thinks that the waitgroup inside httptest.Server is added to
concurrently with us closing it. If we timed out immediately, we could close
the testserver before we entered the handler. We're not timing out immediately
and there's no way we would be done before we entered the handler, but the
race detector doesn't know this, so synchronize explicitly.
2015-08-27 11:51:02 -07:00
Philip O'Toole 191163c7c7 Move to Go 1.5 2015-08-27 09:58:15 -07:00
gunnaraasen 7dc7389e96 Remove dump from client and handler 2015-08-07 11:56:30 -07:00
Cory LaNou 765509bd68 revert breaking change to `client.NewClient` function 2015-08-06 11:46:25 -05:00
Cory LaNou 296f16d634 NewConfig should return a default config without needing params passed to it 2015-08-06 09:19:56 -05:00
Cory LaNou 76367d5161 refactoring based on feedback 2015-08-06 09:19:56 -05:00
Cory LaNou c2f90ed887 update client tests 2015-08-06 09:19:34 -05:00
Cory LaNou 30a0ca0130 start of a v8 data importer via the cli 2015-08-06 09:19:34 -05:00
Alexander Plutov c2395d2c17 imported url package 2015-07-30 15:06:43 +07:00
Matthias Luedtke 3896a02fde Add GoDoc badge at top of Readme for quick access. 2015-07-08 16:25:59 +02:00
Jason Wilder d5f67c8f8b Merge pull request #3172 from rdallman/master
client: fixes nil map assignment when writing batch points out
2015-06-30 10:41:22 -06:00
Reed Allman 7fac798b93 fixes nil map assignment when writing batch points out 2015-06-28 17:45:47 -07:00
Joseph Crail 5fccee3d16 Fix spelling errors in comments and strings. 2015-06-28 02:54:34 -04:00
Evan Phoenix a00c6215ce Copy an Batch tags to each point before marshalling 2015-06-25 14:08:38 -07:00
Sean Beckett e6c36d5e44 common batch parameters no longer allowed with line protocol 2015-06-19 11:56:22 -07:00
Gunnar c9277e3b9d Merge pull request #2793 from influxdb/ga-cli-write
CLI: Add `INSERT` and `INSERT INTO` for writing points
2015-06-10 19:02:25 -07:00
Alex Davies a783bbcf0e Name is now Measurement per issue #2564 2015-06-10 23:44:59 +00:00
gunnaraasen 2d712733e9 Clean up INSERT INTO parsing and tests 2015-06-09 15:45:26 -07:00
gunnaraasen dddda797dd Enable client to write points already in the line protocol format 2015-06-09 15:14:16 -07:00
David Norton 092bc3fd2d fix #2733: hook CQs back in 2015-06-05 19:54:23 -04:00
Todd Persen dd9c04ad89 Rename `influxdb` => `client` 2015-06-05 14:46:42 -07:00
Todd Persen 202e420e91 Fixing merge conflict. 2015-06-05 14:23:13 -07:00
Ben Johnson 44d38cb430 Merge branch 'master' into alpha1 2015-06-02 10:40:52 -06:00
Jason Wilder f7d90cf94e Convert client to use line protocol by default
Keeps the API unchanged for now although many of the JSON features
don't map well to the line protocol endpoint so we might want to
remove them when the JSON api is removed.
2015-06-01 16:22:12 -06:00
Ben Johnson 8c8a55a737 Removed 'failed' from test suite. 2015-05-30 08:59:27 -06:00
Ben Johnson 79fba95550 Merge remote-tracking branch 'origin/alpha1' into integrate-meta 2015-05-30 08:50:09 -06:00
Ben Johnson cdc5a47efa Clean up influxdb. 2015-05-30 08:14:10 -06:00
ben hockey cfbff1df08 s/values/fields/g in JSON Unmarshal benchmarks 2015-05-29 21:27:06 -05:00
Jason Wilder 53d78b5612 Add JSON unmarshal benchmarks
Similar to the ParsePoints benchmarks for the line protocol for
comparison.
2015-05-29 19:32:32 -06:00
Jason Wilder 4e7c8bdad2 Add ParsePointsWithPrecision to handle precision write argument 2015-05-29 11:18:40 -06:00
Vladimir Lopes 3e03be358f Include client timeout configuration 2015-05-28 18:03:02 -03:00
David Norton 644fbdc1e8 fix #2564: fix client package 2015-05-22 07:22:35 -04:00
David Norton 0fb4e14c44 fix #2564: chg name to measurement in write JSON 2015-05-21 19:05:32 -04:00
Ben Johnson 00ce4a504e Wait for quorum write before returning from Log.Apply().
This commit ensures a commit is written to a quorum before returning
from Log.Apply().
2015-05-13 16:05:26 -06:00
Vladimir Lopes d8e3de68c4 Check for nil response on Client write test 2015-05-13 16:13:37 -03:00
Vladimir Lopes 6d612c4d57 Return StatusNoContent on Client write test 2015-05-13 15:44:31 -03:00
Vladimir Lopes 92954c1217 Fix client response check after PR #2298
The write endpoint is returning StatusNoContent instead of StatusOK
when the write is successful.
2015-05-13 10:22:06 -03:00
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05:00
s7v7nislands 4f881139ac remove unused function 2015-05-06 22:00:31 +08:00
Cory LaNou c604a765de Always send auth headers for client requests if present 2015-04-22 18:15:39 -06:00
Jason Wilder 38628e540b Make drop database close and release resources
Drop database did not close any open shard files or close
any topic reader/heartbeats.  In the tests, we create and drop new
databases during each test run so these were open files and connection
slowed things down and consumed a lot of RAM as the tests progressed.
2015-04-21 13:39:58 -06:00
Cory LaNou fa103d9400 clean up error logic for Query endpoint 2015-04-13 15:56:49 -06:00
Cory LaNou a7ae9a529a need to return an error if status code is not 200 2015-04-13 15:56:49 -06:00
Cory LaNou 4319ac051b use basic auth instead of the uri 2015-04-13 15:56:29 -06:00
Jari Sukanen 704691454d server: rename influxdb.Results type to influxdb.Response (issue: #2050)
Rename influxdb.Results to influxdb.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 12:17:33 +03:00
Jari Sukanen a56ea6f191 client: rename client.Results type to client.Response (issue: #2050)
Rename client.Results to client.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 11:43:53 +03:00
Cory LaNou a4b133c601 Merge pull request #2093 from derailed/BUG_PointPrecision
Point Precision not getting marshaled correctly...
2015-03-27 21:10:04 -06:00
Philip O'Toole 6a77a38cf2 Finaly copyedit of client README 2015-03-27 15:29:41 -07:00
derailed 0519d46132 cleaning up 2015-03-27 14:07:49 -06:00
derailed a6ac28607b updated the docs/example based on team feedback + added instructions for auth 2015-03-27 14:01:45 -06:00