GitHub user whhe opened a pull request:
https://github.com/apache/incubator-griffin/pull/201
update exception handling and restful response
1. Update exception handling. Add exception handlers for client error and
checked exception at server side. Remove unnecessary try-catch for runtime
exception.
2. Modify HTTP response according to restful principle, for exception
response, add HTTP status code and customized error code and message into the
response body.
3. Change the implement of 'add metric values' method in MetricStore to use
bulk api of elasticsearch
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/whhe/incubator-griffin master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-griffin/pull/201.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #201
----
commit b39c11458f76b8eebd40f87c56276a40fb8f7556
Author: He Wang <wanghechn@...>
Date: 2018-01-22T08:27:27Z
exception handling update
commit f3c569f678f9745fcfb0009d213fe6b6b2bb1bb4
Author: He Wang <wanghechn@...>
Date: 2018-01-24T09:11:27Z
update unit test
commit bc8ef6ad3afd99dba18a991a146bb9d929ada770
Author: He Wang <wanghechn@...>
Date: 2018-01-25T09:33:05Z
update ut
commit 9488497ed6f9139c12b87306dd00b4a9f2d8a01a
Author: He Wang <wanghechn@...>
Date: 2018-01-25T09:55:35Z
Merge branch 'master' of https://github.com/apache/incubator-griffin
commit 53aac948cdf57e0b5f0e641b0d27afb1c86a1814
Author: He Wang <wanghechn@...>
Date: 2018-01-29T05:31:44Z
modify metric response and ut
commit 65e23203852bfffe5badfeb8f0b0f461dd3fbfb1
Author: He Wang <wanghechn@...>
Date: 2018-01-29T05:52:23Z
add format check for metric values
commit c22e00a94f501228bc58c3a77d70ada1dfb108fe
Author: He Wang <wanghechn@...>
Date: 2018-01-29T05:52:35Z
Merge branch 'master' of https://github.com/apache/incubator-griffin
commit eb8fdda12de64aceb1e689d70c194023621939b1
Author: He Wang <wanghechn@...>
Date: 2018-01-29T07:57:53Z
update postman doc
----
---