com.snowplowanalytics.snowplow.enrich.common.enrichments.registry
The number of octets (IPv4) to anonymize
The number of segments (IPv6) to anonymize
Anonymize the supplied IP address.
Anonymize the supplied IP address.
ipv4Octets is the number of octets in the IPv4 address to anonymize, starting from the right (example below)
ipv6Segments is the number of segments in the IPv6 address to anonymize, starting from the right (exaple below)
example:
val enrichment = AnonIpEnrichment(Three, Four) enrichment.anonymizeIp("94.15.223.151")
enrichment.anonymizeIp("2605:2700:0:3::4713:93e3")
For IPv6 either the form defined in RFC 2732 or the literal IPv6 address format defined in RFC 2373 is accepted
TODO: potentially update this to return a Validation error or a null if the IP address is somehow invalid or incomplete.
the anonymized IP address
Gets the list of files the enrichment requires cached locally.
Gets the list of files the enrichment requires cached locally. The default implementation returns an empty list; if an enrichment requires files, it must override this method.
A list of pairs, where the first entry in the pair indicates the (remote) location of the source file and the second indicates the local path where the enrichment expects to find the file.
The number of octets (IPv4) to anonymize
The number of segments (IPv6) to anonymize
Config for an anon_ip enrichment
The number of octets (IPv4) to anonymize
The number of segments (IPv6) to anonymize