Victor Marmol
65b39c1ba9
Check HTTP error code in the cAdvisor client.
...
This will provide more meaningfull errors than the cryptic unmarshalling
ones we've gotten today.
Fixes #362 .
2014-12-16 11:28:42 -08:00
Victor Marmol
181e12dda2
Refactoring and fixes of /docker API endpoint.
...
This canges the output of the Docker endpoint to be a map so that it is
more consistent from single to multiple returns. It also refactors
internally how we handle both types of requests.
Without this PR the /docker API endpoint is broken completely so this
change in format has no effect anyways.
These changes are tested by the upcoming integration tests.
2014-11-19 03:36:18 -08:00
Kevin McCarthy
83a4472d4e
Put client inside its own package
...
This will let me do things like import "github.com/google/cadvisor/client"
without needing to include all of cadvisor in my project
2014-10-20 02:05:52 +00:00
Victor Marmol
33ccd0949e
Adding Subcontainers to cAdvisor client.
...
Also refactoring and improvements.
2014-10-01 11:51:30 -07:00
Satnam Singh
fde48d5124
Fix yet another typo in the comment for TestGetMachineInfo.
2014-09-22 16:39:28 -07:00
Satnam Singh
6259778f75
Fix typo for comment on TestGetMachineInfo.
2014-09-22 16:32:44 -07:00
Satnam Singh
6daa23d9a3
Some Go style suggestions for client.go and client_test.go
2014-09-22 16:25:06 -07:00
Victor Marmol
9dd8621686
Remove remaining parts of samples and percentiles.
2014-09-15 14:38:51 -07:00
Dan McPherson
0897eb4df3
Fixing typos
2014-07-29 10:35:01 +02:00
Nan Deng
9401d35ce2
gofmt -r "MemoryUsagePercentages->MemoryUsagePercentiles"
2014-07-23 17:58:50 -07:00
Nan Deng
95889f3c99
change client's unit test to use ContainerInfo.Eq()
2014-07-15 13:24:21 -07:00
Nan Deng
6818ac9b9f
gofmt -r "ContainerInfoQuery->ContainerInfoRequest"
2014-07-08 18:04:57 -07:00
Nan Deng
6a5a395fbd
fix typo
2014-07-08 18:04:13 -07:00
Nan Deng
f2a0365766
gofmt -r "CpuUsagePercentages->CpuUsagePercentiles"
2014-07-08 17:20:04 -07:00
Nan Deng
115b132e5f
stats time precesion affects the test results
2014-07-08 13:55:09 -07:00
Nan Deng
6efeaf6b87
Heisenbug?
2014-07-08 13:35:05 -07:00
Nan Deng
a3d9f2d094
better error message for unit test
2014-07-08 13:22:30 -07:00
Nan Deng
18f531b5fb
smaller data set
2014-07-08 13:12:29 -07:00
Nan Deng
d6c5b6a64e
client test
2014-07-08 13:01:20 -07:00
Nan Deng
d932d351ef
test on client library
2014-07-08 12:49:40 -07:00
Nan Monnand Deng
0a12173b7d
fix test
2014-06-29 20:22:13 -07:00
Nan Deng
ce06d5c0ce
pass unit tests in client
2014-06-12 18:13:58 -07:00
Victor Marmol
712f9fb32f
Migrating cAdvisor code from lmctfy
2014-06-09 12:12:07 -07:00