Object PingTelemetryHelper
-
- All Implemented Interfaces:
public class PingTelemetryHelperPingTelemetryHelper is a utility class that helps in submitting telemetry events related to pings. It uses a sampling validator to determine whether to submit the event based on the configured sampling factor.
-
-
Field Summary
Fields Modifier and Type Field Description public final static PingTelemetryHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitsubmitEvent(String eventType, Map<String, Object> keyValueMap)Submits a telemetry event with the given event type and key-value map. final UnitsetSamplingValidator(SamplingValidator samplingValidator)-
-
Method Detail
-
submitEvent
final Unit submitEvent(String eventType, Map<String, Object> keyValueMap)
Submits a telemetry event with the given event type and key-value map.
-
setSamplingValidator
final Unit setSamplingValidator(SamplingValidator samplingValidator)
-
-
-
-