|  | @@ -27,7 +27,6 @@ import org.elasticsearch.common.xcontent.XContentType;
 | 
	
		
			
				|  |  |  import org.elasticsearch.license.License;
 | 
	
		
			
				|  |  |  import org.elasticsearch.plugins.Plugin;
 | 
	
		
			
				|  |  |  import org.elasticsearch.rest.RestStatus;
 | 
	
		
			
				|  |  | -import org.elasticsearch.rest.action.document.RestBulkAction;
 | 
	
		
			
				|  |  |  import org.elasticsearch.search.SearchHit;
 | 
	
		
			
				|  |  |  import org.elasticsearch.search.SearchHits;
 | 
	
		
			
				|  |  |  import org.elasticsearch.search.collapse.CollapseBuilder;
 | 
	
	
		
			
				|  | @@ -105,11 +104,11 @@ public class MonitoringIT extends ESSingleNodeTestCase {
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private String createBulkEntity() {
 | 
	
		
			
				|  |  | -        return "{\"index\":{\"_type\":\"test\"}}\n" +
 | 
	
		
			
				|  |  | +        return "{\"index\":{}}\n" +
 | 
	
		
			
				|  |  |                 "{\"foo\":{\"bar\":0}}\n" +
 | 
	
		
			
				|  |  | -               "{\"index\":{\"_type\":\"test\"}}\n" +
 | 
	
		
			
				|  |  | +               "{\"index\":{}}\n" +
 | 
	
		
			
				|  |  |                 "{\"foo\":{\"bar\":1}}\n" +
 | 
	
		
			
				|  |  | -               "{\"index\":{\"_type\":\"test\"}}\n" +
 | 
	
		
			
				|  |  | +               "{\"index\":{}}\n" +
 | 
	
		
			
				|  |  |                 "{\"foo\":{\"bar\":2}}\n" +
 | 
	
		
			
				|  |  |                 "\n";
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -128,7 +127,7 @@ public class MonitoringIT extends ESSingleNodeTestCase {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              final MonitoringBulkResponse bulkResponse =
 | 
	
		
			
				|  |  |                      new MonitoringBulkRequestBuilder(client())
 | 
	
		
			
				|  |  | -                            .add(system, null, new BytesArray(createBulkEntity().getBytes("UTF-8")), XContentType.JSON,
 | 
	
		
			
				|  |  | +                            .add(system, "monitoring_data_type", new BytesArray(createBulkEntity().getBytes("UTF-8")), XContentType.JSON,
 | 
	
		
			
				|  |  |                                   System.currentTimeMillis(), interval.millis())
 | 
	
		
			
				|  |  |                      .get();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -179,10 +178,9 @@ public class MonitoringIT extends ESSingleNodeTestCase {
 | 
	
		
			
				|  |  |                         equalTo(1L));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              for (final SearchHit hit : hits.getHits()) {
 | 
	
		
			
				|  |  | -                assertMonitoringDoc(toMap(hit), system, "test", interval);
 | 
	
		
			
				|  |  | +                assertMonitoringDoc(toMap(hit), system, "monitoring_data_type", interval);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        assertWarnings(RestBulkAction.TYPES_DEPRECATION_MESSAGE);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
	
		
			
				|  | @@ -265,7 +263,6 @@ public class MonitoringIT extends ESSingleNodeTestCase {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          final String index = (String) document.get("_index");
 | 
	
		
			
				|  |  |          assertThat(index, containsString(".monitoring-" + expectedSystem.getSystem() + "-" + TEMPLATE_VERSION + "-"));
 | 
	
		
			
				|  |  | -        assertThat(document.get("_type"), equalTo("doc"));
 | 
	
		
			
				|  |  |          assertThat((String) document.get("_id"), not(isEmptyOrNullString()));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          final Map<String, Object> source = (Map<String, Object>) document.get("_source");
 |