Class SDKTelemetryValidator
-
- All Implemented Interfaces:
-
com.inmobi.commons.core.telemetry.ITelemetryValidator
public final class SDKTelemetryValidator implements ITelemetryValidator
This class does the validations that are required for SDK telemetry events fun isEventValid() does the validations for the valid SDK event fun isEventSampled() handles the validations for sampling for the SDK events
-
-
Constructor Summary
Constructors Constructor Description SDKTelemetryValidator(TelemetryConfigMetaData telemetryConfigMetaData, Double samplingFactorGenerated, List<String> samplingEvents)
-
Method Summary
Modifier and Type Method Description final StringgetTAG()BooleanisEventValid(Map<String, Object> keyValueMap, String eventType)isEventValid checks for EventType AssetDownloaded if ASSETTYPE is the key present inside the keyValueMap of the Telemetry Event then it checks for: isImageEnabled isGIFEnabled isVideoEnabled if not enabled then return false IntegerisEventSampled(String eventType)-
-
Constructor Detail
-
SDKTelemetryValidator
SDKTelemetryValidator(TelemetryConfigMetaData telemetryConfigMetaData, Double samplingFactorGenerated, List<String> samplingEvents)
-
-
Method Detail
-
isEventValid
Boolean isEventValid(Map<String, Object> keyValueMap, String eventType)
isEventValid checks for EventType AssetDownloaded if ASSETTYPE is the key present inside the keyValueMap of the Telemetry Event then it checks for: isImageEnabled isGIFEnabled isVideoEnabled if not enabled then return false
-
isEventSampled
Integer isEventSampled(String eventType)
-
-
-
-