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
derailed
5eb3e5fc1a
added godoc examples
2015-03-27 11:28:51 -06:00
derailed
37a0b22df3
Beefed up influx client README
2015-03-27 09:56:00 -06: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
Rene Fragoso
afc6c8be24
Cleanup golint warnings for client code
...
Fixes the following two warnings:
influxdb.go:149:1: exported method Client.Dump should have comment or be
unexported
- Adds comment for Client.Dump
influxdb.go:263:1: receiver name rs should be consistent with previous
receiver name r for Results
- Changes receiver name from "a" to "r"
2015-03-22 01:33:04 -04:00
Joseph Rothrock
21fd2e2662
dump cmd
...
rename dump flag
put an error response body if json marshalling breaks.
detect and respond to http error codes in the client.
2015-03-18 14:10:36 -07:00
Joseph Rothrock
9063312636
cory sez to remove tags
2015-03-17 15:27:33 -07:00
Joseph Rothrock
d7420683ae
tweaking in response to various PR comments
2015-03-16 15:31:41 -07:00
Joseph Rothrock
4aabcd907c
Dump cmd
...
Issue: 1909
move dump cmd to an http endpoint.
Add dump cmd on client to call the endpoint.
2015-03-13 15:37:23 -07:00
Cory LaNou
18f159ae16
point to godoc
2015-03-09 13:07:50 -06:00
Cory LaNou
3172f31416
version is a lie for the client library
2015-03-09 09:51:47 -06:00
Cory LaNou
abb96535dd
remove more indenting
2015-03-09 09:08:15 -06:00
Cory LaNou
b31ecd89ea
remove indents from readme
2015-03-09 09:08:15 -06:00
Cory LaNou
6afa4fb083
update test to expect a default user agent
2015-03-09 09:08:14 -06:00
Cory LaNou
f1d7b3e200
first pass at documenting library
2015-03-09 09:08:14 -06:00
Cory LaNou
c52210d9a5
fix signature and add comment
2015-03-09 09:08:14 -06:00
Cory LaNou
97dc11c96d
more documenting. starting to update readme.
2015-03-09 09:08:14 -06:00
Cory LaNou
2b4f155407
return no results if successful. update tests. add comments
2015-03-09 09:08:14 -06:00
Cory LaNou
7c926a9934
default and send user agent
2015-03-09 09:08:14 -06:00
Cory LaNou
278c652d6f
send credentials if provided
2015-03-09 09:08:14 -06:00
Cory LaNou
f74a5435ca
always stream decode json
2015-03-07 07:12:22 -07:00
Cory LaNou
548a201588
remove log debug statements
2015-03-07 07:12:22 -07:00
Cory LaNou
f01ee5eb51
adding integration tests for client library. misc bug fixes
2015-03-07 07:12:22 -07:00
Cory LaNou
3aafbd9d5f
omitempty to cut down on marshal overhead and http traffic
2015-03-07 07:12:22 -07:00
Cory LaNou
2bdc5d2ef5
remove obsolete Timestamp code
2015-03-07 07:12:22 -07:00
Cory LaNou
0fb8938456
know the difference between marshal and unmarshal
2015-03-07 07:12:22 -07: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
Philip O'Toole
2f0fe901e3
Rename "Values" to "Fields" for writes
2015-02-23 15:06:56 -08:00
Philip O'Toole
3e727ac01e
Change "Rows" to "Series" in API output
2015-02-22 21:21:49 -08:00
Mark Rushakoff
e9d5b74738
Client user agent is configurable
2015-02-11 12:35:15 -08:00
Cory LaNou
bc46d590dd
return top level error for results
2015-02-09 17:58:30 -07:00
Cory LaNou
72fb148660
single server integration test is working
2015-02-05 08:50:07 -07:00
Philip O'Toole
d02281988a
Individual points should only be converted if set
...
By changing the 'Timestamp' key to a pointer, it allows the code to
detect when the key wasn't set at all. This then allows the code to know
when to insert a value from the top-level of the batch struct.
2015-02-03 18:43:23 -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
Philip O'Toole
fc89f741cb
Skip time-related marshalling tests until fixed
2015-01-29 22:42:09 -08:00
Cory LaNou
c9e4eea836
inherit precision from top level object when writing points
2015-01-29 16:44:10 -07:00
Cory LaNou
b6ceca4c1c
godoc comments and misc formatting
2015-01-29 16:33:31 -07:00
Cory LaNou
b6725501f4
Rounding precision on writing
2015-01-29 16:23:15 -07:00
Cory LaNou
88759a7ecc
time should marshal into UTC and nanoseconds
2015-01-29 16:23:15 -07:00
Cory LaNou
4b84a2d174
Point/Results duplicated in Client package. Custom marshaling for timestamps
2015-01-29 16:23:15 -07:00
Cory LaNou
37aad6fd20
client utility function EpochToTime
2015-01-29 16:23:15 -07:00
Philip O'Toole
a197d16ac8
Add top-level "results" key
...
This brings the API output into line with the API specification.
2015-01-27 15:47:47 -08:00
Cory LaNou
64be143367
fixing bug, using wrong url to query in client library
2015-01-26 14:34:24 -07:00
Cory LaNou
e7a031b0fa
show version when connecting via cli
2015-01-26 14:12:58 -07:00
Cory LaNou
ac9473374a
refactoring some client config. staring cli client, lot of wip
2015-01-23 15:49:23 -07:00
Cory LaNou
a8d398bd22
first pass at write for client library
2015-01-23 13:37:53 -07:00
Cory LaNou
e25da88a1f
decode json via io.reader
2015-01-23 11:07:41 -07:00
Cory LaNou
d67851922d
basic auth added to client
2015-01-23 11:05:04 -07:00
Cory LaNou
c943802c67
basic query
2015-01-22 17:18:24 -07:00
Cory LaNou
86d6324469
ping added to client. useful for testing/mocking
2015-01-22 16:40:32 -07:00
Cory LaNou
087f41c5e8
basic building blocks of a client library
2015-01-22 15:23:55 -07:00
Cory LaNou
bc84193ec1
adding README.md placeholder
2015-01-22 15:08:30 -07:00
Cory LaNou
44d43462cf
removing old client and benchmarks to make space for new client and benchmarks
2015-01-22 15:02:24 -07:00
Ben Johnson
9d1464813a
Merge branch 'master' of https://github.com/influxdb/influxdb into streaming-raft
...
Conflicts:
Makefile.in
_vendor/raft/server.go
_vendor/raft/snapshot.go
_vendor/raft/snapshot_test.go
admin/http_server.go
admin/http_server_test.go
api/graphite/api.go
api/http/series_writer.go
cluster/cluster_configuration.go
cluster/cluster_server.go
cluster/nil_processor.go
cluster/shard_space.go
cmd/influxd/main.go
common/helpers.go
configuration/configuration.go
configuration/configuration_test.go
coordinator/protobuf_server.go
coordinator/raft_server.go
datastore/point_iterator.go
datastore/shard.go
datastore/storage_key.go
engine/aggregator_engine.go
engine/arithmetic_operators.go
parser/group_by.go
parser/query_api.go
response_channel.go
server/server.go
2014-11-06 01:20:36 -05:00
John Shahid
9c31291ca0
Move the influxdb test to an examples directory
...
These tests weren't designed to be run automatically via the ci. They
were a proof of concept and to demonstrate the api in action
2014-10-27 17:57:22 -04:00
Ben Johnson
2d85507a87
Refactor tools into cmd.
2014-10-21 17:46:16 -06:00
John Shahid
4cc36fb7f6
Fix the millisecond time precision in the client
2014-09-11 18:16:22 -04:00
Paul Dix
6ddfba6e32
Add ability to update existing shard spaces.
...
This will help users recover from #886 . It's dangerous functionality because it only changes the metadata. Will document and tell people to use with caution.
2014-09-08 14:18:32 -04:00
John Shahid
b66eab4f25
Remove some api endpoints that are redundant
2014-09-03 15:10:42 -04:00
Paul Dix
632dba81dc
Make create shard space endpoint database specific.
...
Fixes #831 . Shard spaces now belong to a database so the endpoint should reflect that.
2014-08-15 13:23:21 -04:00
John Shahid
cfde05dbd1
Add New() to the client library so users can do client.New()
2014-07-17 14:50:01 -04:00
John Shahid
f6ae65d134
Fix the package name of the client package
2014-07-17 14:49:07 -04:00
John Shahid
fd45c9255b
Remove more indirect references to the protocol package
...
Fix #756
2014-07-17 14:23:23 -04:00
John Shahid
e4c25d06bd
Revert "alias SerializedSeries"
...
This reverts commit 75269682ff
.
Fix #756 . We can't import common which in turn import protocol since
protocol contains generated files that aren't checked in the repo. Until
we have a better solution, i'll just revert this commit.
2014-07-17 14:08:44 -04:00
John Shahid
df7e4d2b92
fix the client test
2014-07-15 15:56:17 -04:00
John Shahid
75269682ff
alias SerializedSeries
2014-07-15 15:28:27 -04:00
Vaibhav Bhembre
5503d5424e
Prevent redundant copies when pulling in queried data-points
2014-07-15 15:21:04 -04:00
John Shahid
d40a196234
Use the same ShardSpace in the server and client
2014-07-14 19:41:13 -04:00
John Shahid
941bc97e9d
delete the client license and gitignore
2014-07-14 19:10:32 -04:00
John Shahid
a915bf5e87
Subtree merged client code
2014-07-14 19:09:26 -04:00