Skip to content

Commit

Permalink
remove type from deprecrated path
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelandis committed Mar 11, 2019
1 parent f2a623d commit 1573aae
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public RestMonitoringBulkAction(Settings settings, RestController controller) {
POST, "/_xpack/monitoring/_bulk", deprecationLogger);
controller.registerWithDeprecatedHandler(PUT, "/_monitoring/bulk", this,
PUT, "/_xpack/monitoring/_bulk", deprecationLogger);
controller.registerWithDeprecatedHandler(POST, "/_monitoring/{type}/bulk", this,
POST, "/_xpack/monitoring/{type}/_bulk", deprecationLogger);
controller.registerWithDeprecatedHandler(PUT, "/_monitoring/{type}/bulk", this,
PUT, "/_xpack/monitoring/{type}/_bulk", deprecationLogger);

final List<String> allVersions = Arrays.asList(
MonitoringTemplateUtils.TEMPLATE_VERSION,
Expand All @@ -82,10 +78,6 @@ public RestChannelConsumer doPrepareRequest(RestRequest request, XPackClient cli
throw new IllegalArgumentException("no [" + MONITORING_ID + "] for monitoring bulk request");
}

if (Strings.isEmpty(request.param("type")) == false) {
throw new IllegalArgumentException("Custom types for monitoring is not supported. [" + id + "]");
}

final String version = request.param(MONITORING_VERSION);
if (Strings.isEmpty(version)) {
throw new IllegalArgumentException("no [" + MONITORING_VERSION + "] for monitoring bulk request");
Expand Down

0 comments on commit 1573aae

Please sign in to comment.