Adapt to core Strings method rename
This commit adapts a single usage of a method that was renamed in core. Relates elastic/x-pack-elasticsearch#3265 Original commit: elastic/x-pack-elasticsearch@107c495d63
This commit is contained in:
parent
8a0e7f58b8
commit
27a3a80c07
|
@ -34,7 +34,7 @@ public class RestWatcherStatsAction extends WatcherRestHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected RestChannelConsumer doPrepareRequest(final RestRequest restRequest, WatcherClient client) throws IOException {
|
protected RestChannelConsumer doPrepareRequest(final RestRequest restRequest, WatcherClient client) throws IOException {
|
||||||
Set<String> metrics = Strings.splitStringByCommaToSet(restRequest.param("metric", ""));
|
Set<String> metrics = Strings.tokenizeByCommaToSet(restRequest.param("metric", ""));
|
||||||
|
|
||||||
WatcherStatsRequest request = new WatcherStatsRequest();
|
WatcherStatsRequest request = new WatcherStatsRequest();
|
||||||
if (metrics.contains("_all")) {
|
if (metrics.contains("_all")) {
|
||||||
|
|
Loading…
Reference in New Issue