Skip to content

Commit 1573aae

Browse files
committed
remove type from deprecrated path
1 parent f2a623d commit 1573aae

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/rest/action/RestMonitoringBulkAction.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ public RestMonitoringBulkAction(Settings settings, RestController controller) {
5252
POST, "/_xpack/monitoring/_bulk", deprecationLogger);
5353
controller.registerWithDeprecatedHandler(PUT, "/_monitoring/bulk", this,
5454
PUT, "/_xpack/monitoring/_bulk", deprecationLogger);
55-
controller.registerWithDeprecatedHandler(POST, "/_monitoring/{type}/bulk", this,
56-
POST, "/_xpack/monitoring/{type}/_bulk", deprecationLogger);
57-
controller.registerWithDeprecatedHandler(PUT, "/_monitoring/{type}/bulk", this,
58-
PUT, "/_xpack/monitoring/{type}/_bulk", deprecationLogger);
5955

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

85-
if (Strings.isEmpty(request.param("type")) == false) {
86-
throw new IllegalArgumentException("Custom types for monitoring is not supported. [" + id + "]");
87-
}
88-
8981
final String version = request.param(MONITORING_VERSION);
9082
if (Strings.isEmpty(version)) {
9183
throw new IllegalArgumentException("no [" + MONITORING_VERSION + "] for monitoring bulk request");

0 commit comments

Comments
 (0)