org.apache.rocketmq.shaded.io.opentelemetry.sdk.metrics.data.Data Maven / Gradle / Ivy
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.apache.rocketmq.shaded.io.opentelemetry.sdk.metrics.data;
import java.util.Collection;
import javax.annotation.concurrent.Immutable;
/**
* A collection of data points associated to a metric.
*
* Loosely equivalent with "Metric" message in OTLP. See:
* https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#metric-points
*/
@Immutable
public interface Data {
/**
* Returns the data {@link PointData}s for this metric.
*
* @return the data {@link PointData}s for this metric, or empty {@code Collection} if no points.
*/
Collection getPoints();
}