public MetricsBuilder aggregation(AggregationConfig aggregation) {
        this.aggregation = aggregation;
        return getThis();
    }
@Test
    void aggregation() {
        AggregationConfig aggregation = new AggregationConfig();
        aggregation.setEnabled(true);
        aggregation.setEnableQps(false);
        aggregation.setBucketNum(100);

        MetricsBuilder builder = MetricsBuilder.newBuilder();
        builder.aggregation(aggregation);

        Assertions.assertSame(aggregation, builder.build().getAggregation());
        Assertions.assertTrue(builder.build().getAggregation().getEnabled());
        Assertions.assertFalse(builder.build().getAggregation().getEnableQps());
        Assertions.assertEquals(100, builder.build().getAggregation().getBucketNum());
    }