public IntValues getLinearIntValues(final MetricCondition metrics,
                                        final Duration duration) throws IOException {
        MetricsCondition condition = new MetricsCondition();
        condition.setName(metrics.getName());
        condition.setEntity(new MockEntity(metrics.getId()));

        final MetricsValues metricsValues = query.readMetricsValues(condition, duration).join();
        return metricsValues.getValues();
    }
@since 8.0.0 This query is replaced by {@link MetricsQuery}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/MetricQuery.java