Commit Graph

38 Commits

Author SHA1 Message Date
mqliang
ce001dcd4e Fix imported package names to not use mixedCaps or under_scores 2015-10-22 12:10:57 +08:00
Rohit Jnagal
e68b6cbb25 Add 'all_events' option to the api to report all event types. 2015-05-06 16:45:13 +00:00
Victor Marmol
ed6dd78996 Handle container names in resource path 2015-04-20 11:27:39 -07:00
Katie Knister
141b9f3809 Added container_name field to event API 2015-04-15 16:51:15 -07:00
Victor Marmol
a45d396804 Add oom_kill_events parameter to API 2015-04-15 15:49:11 -07:00
Victor Marmol
11462d80bc Lowering log levels.
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Katie Knister
ee4bdc2698 Improvements to events integration test 2015-04-10 13:33:22 -07:00
Victor Marmol
8af583c35e Change historical to stream so it can default to false.
Defaulting to non-watch makes it easy to query in a browser and curl.
2015-04-01 10:05:05 -07:00
Victor Marmol
4cb69036f8 Move Event to info since it is a public API object. 2015-04-01 09:17:43 -07:00
Victor Marmol
fae2234846 Merge pull request #576 from kateknister/master
Provides a way to remove unused channels from an eventHandler's watchers list
2015-03-25 17:29:01 -07:00
Katie Knister
3c7e67991d Created a way to remove unused channels from an eventHandler's watchers list 2015-03-25 16:36:48 -07:00
Victor Marmol
814c65059a Document and specify defaults for ContainerRequestInfo. 2015-03-25 13:15:10 -07:00
Victor Marmol
5eeb6fdd40 Merge pull request #574 from kateknister/master
Fixed some bugs in oomparser streaming
2015-03-11 09:14:07 -07:00
Katie Knister
78f3029943 Fixed some bugs in oomparser streaming 2015-03-10 18:18:54 -07:00
Victor Marmol
d357c34f22 Refactor and centralize HTTP registration. 2015-03-10 18:00:10 -07:00
Victor Marmol
563ead3cce Use mux to register HTTP handlers.
This will allow us to register handlers on the non-default HTTP handler.
2015-03-10 15:37:16 -07:00
Katie Knister
3a133c2be7 Added streaming to api 2015-03-09 17:54:28 -07:00
Rohit Jnagal
872546ba3a Bulk move current info api to info/v1. Making room for info/v2. 2015-03-04 00:47:28 +00:00
Katie Knister
6e14267c3c Added a basic api interface for events 2015-02-26 14:14:25 -08:00
Victor Marmol
77283196f6 Refactoring API version handling.
This should make it easier to add future API versions and makes it a bit
simpler to look through the API.
2015-02-09 15:16:45 -08:00
Victor Marmol
e3ab15417c Ignore update errors for dead containers.
This adds an Exists() interface to detect when the container is dead.
Before reporting an update error we check is Exists() is true.

Some documentation was added as well.
2014-11-22 05:31:11 +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
Darren Shepherd
bce92c2a0b When an unknown error occurs set the HTTP status code to 500 2014-11-08 14:56:28 -07:00
Victor Marmol
9961e0f4d6 Output correct content-type with API responses.
Fixes #281
2014-10-27 08:33:22 -07:00
Victor Marmol
8aa05b0c39 Add API version v1.2 with /docker endpoint.
The /docker endpoint lists all Docker containers under one unified
namespace.
2014-10-20 22:24:01 -07:00
Satnam Singh
f3c92c381a More if undos. 2014-09-24 11:07:48 -07:00
Satnam Singh
bae82a583d A few minor Go style suggestions. 2014-09-24 10:53:52 -07:00
Satnam Singh
87768a047c Minor Go-style suggeston: move decode and error assignment into if clause check. 2014-09-22 15:21:06 -07:00
Victor Marmol
9dd8621686 Remove remaining parts of samples and percentiles. 2014-09-15 14:38:51 -07:00
Vishnu Kannan
3e390e0f33 Use glog instead of 'log' library.
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-07 18:38:58 +00:00
Victor Marmol
41e27e40ef Adding v1.1 remote API.
Main addition is the "subcontainers" resource which provides
ContainerInfo for all subcontainers (recursively and including
self) of the specified container.
2014-08-01 16:17:43 -07:00
Victor Marmol
d2397e5ab7 Refactor API http handlers to prepare for versioning. 2014-08-01 10:13:58 -07:00
Nan Deng
55b65f4eb9 Retrieve 0 stats/samples when user asked for zero stats/samples 2014-07-23 17:28:41 -07:00
Nan Deng
6818ac9b9f gofmt -r "ContainerInfoQuery->ContainerInfoRequest" 2014-07-08 18:04:57 -07:00
Nan Deng
c1ecbc94a6 fmt.Errorf() 2014-07-08 17:30:35 -07:00
Nan Deng
38c5f0e29f empty query means default values 2014-07-07 22:10:25 -07:00
Nan Deng
4d0b365d43 let users decide how many stats/samples they want to retrieve 2014-07-07 22:04:30 -07:00
Victor Marmol
712f9fb32f Migrating cAdvisor code from lmctfy 2014-06-09 12:12:07 -07:00