-
public interface DataConstraintsThis interface allows sanitizing logs locally before uploading them to the servers.
-
-
Method Summary
Modifier and Type Method Description abstract <T extends Any> Map<String, T>validateAttributes(Map<String, T> attributes, String keyPrefix, String attributesGroupName, Set<String> reservedKeys)Validates attributes according to the particular rules. abstract List<String>validateTags(List<String> tags)Validates tags according to the particular rules. abstract Map<String, Long>validateTimings(Map<String, Long> timings)Validate timings according to the particular rules. -
-
Method Detail
-
validateAttributes
abstract <T extends Any> Map<String, T> validateAttributes(Map<String, T> attributes, String keyPrefix, String attributesGroupName, Set<String> reservedKeys)
Validates attributes according to the particular rules.
- Parameters:
attributes- Attributes to validate.keyPrefix- Optional key prefix for the attributes root (ex.attributesGroupName- Optional description for the attributes to validate.reservedKeys- Collection of reserved key.
-
validateTags
abstract List<String> validateTags(List<String> tags)
Validates tags according to the particular rules.
- Parameters:
tags- Tags to validate.
-
-
-
-