assertThat(response.getStatusCode(), equalTo(204));
assertThat(response.getErrors().size(), equalTo(0));
// Check Metric names
GetResponse metricNames = client.getMetricNames();
assertThat(metricNames.getStatusCode(), equalTo(200));
assertThat(metricNames.getResults(), hasItems(HTTP_METRIC_NAME_1, HTTP_METRIC_NAME_2));
// Check Tag names
GetResponse tagNames = client.getTagNames();
assertThat(tagNames.getStatusCode(), equalTo(200));
assertThat(tagNames.getResults(), hasItems(HTTP_TAG_NAME_1, HTTP_TAG_NAME_2));
// Check Tag values
GetResponse tagValues = client.getTagValues();
assertThat(tagValues.getStatusCode(), equalTo(200));
assertThat(tagValues.getResults(), hasItems(HTTP_TAG_VALUE_1, HTTP_TAG_VALUE_2));
// Query metrics
QueryBuilder builder = QueryBuilder.getInstance();
builder.setStart(1, TimeUnit.MINUTES);
builder.addMetric(HTTP_METRIC_NAME_1);