Interface Telemetry
- All Known Implementing Classes:
DefaultTelemetry,NoOpTelemetry
@ScannerSide
@SonarLintSide
@ExtensionPoint
public interface Telemetry
Provides access to the APIs for reporting telemetry.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaggregateAsCounter(TelemetryKey key, long value) Aggregates all the given values as a sum for the given key.voidaggregateAsFlag(TelemetryKey key, boolean value) voidSame asaggregateAsSortedSet(TelemetryKey, String), but no value is added.voidaggregateAsSortedSet(TelemetryKey key, String value) Aggregates all the given values as a sorted set for the given key.toMap()
-
Method Details
-
aggregateAsSortedSet
Aggregates all the given values as a sorted set for the given key. The final map will contain the key and a comma-separated list of sorted values. -
aggregateAsSortedSet
Same asaggregateAsSortedSet(TelemetryKey, String), but no value is added. If this is the only call for the key, then the final map will be empty for the key. -
aggregateAsCounter
Aggregates all the given values as a sum for the given key. -
aggregateAsFlag
-
toMap
-