From cd40a38f951a1355c086b99017401b93bd203558 Mon Sep 17 00:00:00 2001 From: lukasz-jarocki-sonarsource Date: Fri, 6 Sep 2024 08:47:33 +0200 Subject: SONAR-22891 added new telemetry metric --- .../org/sonar/telemetry/core/TelemetryDataProvider.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/sonar-telemetry-core/src') diff --git a/server/sonar-telemetry-core/src/main/java/org/sonar/telemetry/core/TelemetryDataProvider.java b/server/sonar-telemetry-core/src/main/java/org/sonar/telemetry/core/TelemetryDataProvider.java index b91453f3aa3..8829701c4b1 100644 --- a/server/sonar-telemetry-core/src/main/java/org/sonar/telemetry/core/TelemetryDataProvider.java +++ b/server/sonar-telemetry-core/src/main/java/org/sonar/telemetry/core/TelemetryDataProvider.java @@ -58,23 +58,23 @@ public interface TelemetryDataProvider { /** * The implementation of this method might often need to make a call to a database. - * For each metric either this method or {@link TelemetryDataProvider#getUuidValues()} should be implemented and used. Not both at once. + * For each metric either this method or {@link TelemetryDataProvider#getValues()} should be used. Not both at once. * * @return the value of the data provided by this instance. */ default Optional getValue() { - throw new IllegalStateException("Not implemented"); + return Optional.empty(); } /** * The implementation of this method might often need to make a call to a database. - * Similiar as {@link TelemetryDataProvider#getValue()} this method returns values of the metric. Some of the metrics - * associate a UUID with a value. This method is used to return all the values associated with the UUIDs. + * Similar as {@link TelemetryDataProvider#getValue()} this method returns values of the metric. Some of the metrics + * associate a key with a value. This method is used to return all the values associated with the keys. * - * @return map of UUIDs and their values. + * @return map of keys and their values. */ - default Map getUuidValues() { - throw new IllegalStateException("Not implemented"); + default Map getValues() { + return Map.of(); } /** -- cgit v1.2.3