com.snowplowanalytics.snowplow.enrich.common.enrichments.registry

IpLookupsEnrichment

case class IpLookupsEnrichment(geoTuple: Option[(String, URI, String)], ispTuple: Option[(String, URI, String)], orgTuple: Option[(String, URI, String)], domainTuple: Option[(String, URI, String)], netspeedTuple: Option[(String, URI, String)], localMode: Boolean) extends Enrichment with Product with Serializable

Contains enrichments based on IP address.

geoTuple

(Full URI to the geo lookup MaxMind data file, database name)

ispTuple

(Full URI to the ISP lookup MaxMind data file, database name)

orgTuple

(Full URI to the organization lookup MaxMind data file

domainTuple

(Full URI to the domain lookup MaxMind data file, database name)

netspeedTuple

(Full URI to the netspeed lookup MaxMind data file, database name)

localMode

Whether to use the local MaxMind data file. Enabled for tests.

Linear Supertypes
Serializable, Serializable, Product, Equals, Enrichment, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IpLookupsEnrichment
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Enrichment
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IpLookupsEnrichment(geoTuple: Option[(String, URI, String)], ispTuple: Option[(String, URI, String)], orgTuple: Option[(String, URI, String)], domainTuple: Option[(String, URI, String)], netspeedTuple: Option[(String, URI, String)], localMode: Boolean)

    geoTuple

    (Full URI to the geo lookup MaxMind data file, database name)

    ispTuple

    (Full URI to the ISP lookup MaxMind data file, database name)

    orgTuple

    (Full URI to the organization lookup MaxMind data file

    domainTuple

    (Full URI to the domain lookup MaxMind data file, database name)

    netspeedTuple

    (Full URI to the netspeed lookup MaxMind data file, database name)

    localMode

    Whether to use the local MaxMind data file. Enabled for tests.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val dbsToCache: List[(URI, FinalPath)]

  9. val domainTuple: Option[(String, URI, String)]

    (Full URI to the domain lookup MaxMind data file, database name)

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def extractIpInformation(ip: String): Validation[String, (Option[IpLocation], Option[String], Option[String], Option[String], Option[String])]

    Extract the geo-location using the client IP address.

    Extract the geo-location using the client IP address.

    Note we wrap the getLocation call in a try catch block. At the time of writing, no valid or invalid IP address can make getLocation throw an Exception, but we keep this protection in case this situation changes in the future (as we don't control the functionality of the underlying MaxMind Java API).

    ip

    The client's IP address to use to lookup the client's geo-location

    returns

    a MaybeIpLocation (Option-boxed IpLocation), or an error message, boxed in a Scalaz Validation

  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. val geoTuple: Option[(String, URI, String)]

    (Full URI to the geo lookup MaxMind data file, database name)

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. val ispTuple: Option[(String, URI, String)]

    (Full URI to the ISP lookup MaxMind data file, database name)

  17. val localMode: Boolean

    Whether to use the local MaxMind data file.

    Whether to use the local MaxMind data file. Enabled for tests.

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. val netspeedTuple: Option[(String, URI, String)]

    (Full URI to the netspeed lookup MaxMind data file, database name)

  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val orgTuple: Option[(String, URI, String)]

    (Full URI to the organization lookup MaxMind data file

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. val version: DefaultArtifactVersion

    Definition Classes
    IpLookupsEnrichmentEnrichment
  25. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Enrichment

Inherited from AnyRef

Inherited from Any

Ungrouped