Jonathan A. Sternberg
373506e335
Add retention policy query parameter to queries
2018-04-24 11:21:12 -05:00
Jonathan A. Sternberg
c67a0548a0
Support proxy environment variables in the influx client
...
This also adds support for both the v1 and v2 APIs to set the Proxy
function on the underlying http.Transport.
The functionality for proxy environment variables is provided by the
[http.ProxyFromEnvironment](https://godoc.org/net/http#ProxyFromEnvironment ).
2018-02-11 21:51:58 -06:00
Jonathan A. Sternberg
fab5c70f6d
Do not explicitly specify ports 80 or 443 when they are the default port
...
The default port for HTTP is 80 and HTTPS is 443. When you host InfluxDB
on a service that uses a reverse proxy, the `Host` header needs to be
exactly correct. Since the host header isn't expecting to see the port
when it is the default, this causes routing to fail.
2018-02-08 10:25:04 -06:00
Edd Robinson
67d1fa3972
Cleanup remaining packages
2018-01-21 12:08:25 -08:00
Jonathan A. Sternberg
2f47c3d28f
Add support for uint64 in the clients
2017-10-05 09:35:06 -05:00
emluque
fa681edcb9
6563 Support Ctrl+C to cancel a running query in the Influx CLI
...
Solved the issue by using context on the http request on the client.
2017-09-01 08:02:27 -05:00
Jason Wilder
2c33919f9c
Add build for go 1.9
2017-07-21 12:37:52 -06:00
Ross McDonald
96ad9c57d9
Move to Go 1.6.2.
2016-05-03 11:33:49 -05:00
Jonathan A. Sternberg
42b68d915f
Return a deprecated message when IF NOT EXISTS is used
...
The deprecated message is now attached to a new attribute returned with
the results. This message can then be read by clients to warn a user
about upcoming changes to the query engine.
The `influx` client has already been modified to read this message and
print it out for every format except CSV.
The first warning message is a deprecated message about removing `IF NOT
EXISTS` from `CREATE DATABASE`.
The message will also be printed to the server log.
Fixes #5707 .
2016-04-15 09:17:59 -04:00
Jonathan A. Sternberg
8752d1b1e3
Support chunked queries in the Go InfluxDB client
...
Modify the CLI to always use chunked queries.
2016-03-31 15:30:43 -04:00
Ben Johnson
50616f0a47
fix additional influxdata renames
2016-02-10 14:19:42 -07:00
Ben Johnson
5a0d1ab7c1
rename influxdb/influxdb to influxdata/influxdb
...
This commit changes all the import and URL references from:
github.com/influxdb/influxdb
to:
github.com/influxdata/influxdb
2016-02-10 10:26:18 -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
Alex Russell-Saw
5bde459f01
client: reject uint64 Client.Point.Field values
2016-02-01 16:17:47 +00:00
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
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
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
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
Cory LaNou
765509bd68
revert breaking change to `client.NewClient` function
2015-08-06 11:46:25 -05:00
Cory LaNou
c2f90ed887
update client tests
2015-08-06 09:19:34 -05: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
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
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
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
ben hockey
9a3c28748c
change timestamp to time
2015-05-11 12:28:47 -05: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
derailed
d02b08d252
Not sure if this was intended or not. Pt Precision is not getting marshaled correctly??
2015-03-26 18:45:36 -06:00
Cory LaNou
3172f31416
version is a lie for the client library
2015-03-09 09:51:47 -06:00
Cory LaNou
6afa4fb083
update test to expect a default user agent
2015-03-09 09:08:14 -06:00
Cory LaNou
d334bec35a
more cleanup on client.Point. testing for json.Marshal(client.Point)
2015-03-07 07:12:22 -07:00
Cory LaNou
4f5ad7399e
add tests for NormalizeBatchPoints. Remove custom type client.Timestamp
2015-03-07 07:12:22 -07:00
Cory LaNou
bda9685526
Use BatchPoints for writing from client library
2015-03-07 07:12:21 -07:00
Mark Rushakoff
e9d5b74738
Client user agent is configurable
2015-02-11 12:35:15 -08:00
Cory LaNou
cc3a147421
Use time.Equal whenever comparing time
2015-01-30 13:45:07 -07:00
Cory LaNou
cea1bfb8f6
update error message to ouput correct actual
2015-01-30 13:45:07 -07:00
Cory LaNou
e2726f7b79
try testing with UTC time
2015-01-30 13:45:07 -07:00
Cory LaNou
173ad5899b
trying time.Equal instead of ==
2015-01-30 13:44:29 -07:00
Cory LaNou
72d73b9c6a
show proper error message in test for debugging
2015-01-30 13:44:29 -07:00
Cory LaNou
98354e2877
raft test still failing, seeing if time tests fail on build, pass locally
2015-01-30 13:44:29 -07:00