Enrich Object

class activelogic.EnrichObject

Object representing a EnrichObject.

>>> so = rs.add(EnrichObject('MyEnrichObject',
... items=[(EnrichObjectNetObjectSubscriberKey(10),
... EnrichObjectSessionContextValue("session/subscriber"),
... EnrichObjectSpoof.OVERWRITE, "Unknown subscriber")]))
>>> so = rs.add(EnrichObject('MyEnrichObject1',
... items=[(EnrichObjectNetObjectSubscriberKey(10),
... EnrichObjectSessionContextValue("session/subscriber"))]))
>>> so = rs.add(EnrichObject('MyEnrichObject2',
... items=[(EnrichObjectNetObjectSubscriberKey(10),
... EnrichObjectNetObjectSubscriberValue(10))]))
>>> so = rs.add(EnrichObject("propertyobj4",
... items=[(EnrichObjectFixedStringKey("Accept-Encoding"),
... EnrichObjectFixedStringValue("enrich")),
... (EnrichObjectNetObjectSubscriberKey(100),
... EnrichObjectUUIDValue("connid"),
... EnrichObjectSpoof.APPEND, "SubscriberA")]))
>>> so = rs.add(EnrichObject('EnrichObj',
... items=[(EnrichObjectFixedStringKey('X-Back-URL'),
... EnrichObjectTemplateValue('{<substr_extract(connproperty("Filename"), "&xbackurl=", "&")>}'),
... EnrichObjectSpoof.OVERWRITE)]))
class activelogic.EnrichObjectItem

Object representing an item of a EnrichObject.

Parameters:
  • key (Union) – Value of the field key

  • value (Union) – Value of the field value

  • spoof_action (EnrichObjectSpoof) – Value of the spoof action

  • default_value (str) – Default value

>>> EnrichObjectItem(key=EnrichObjectNetObjectSubscriberKey(10),
... value=EnrichObjectSessionContextValue("session/subscriber"),
... spoof_action=EnrichObjectSpoof.OVERWRITE,
... default_value="Unknown subscriber")
>>> EnrichObjectItem(key=EnrichObjectNetObjectSubscriberKey(10),
... value=EnrichObjectSessionContextValue("session/subscriber"))
>>> EnrichObjectItem(key=EnrichObjectNetObjectSubscriberKey(10),
... value=EnrichObjectNetObjectSubscriberValue(10))
>>> EnrichObjectItem(key=EnrichObjectFixedStringKey("X-Forwarded-For"),
... value=EnrichObjectNetObjectSubscriberValue(15624),
... spoof_action=EnrichObjectSpoof.OVERWRITE,
... default_value="Unknown subscriber")
>>> EnrichObjectItem(key=EnrichObjectFileNameKey("Accept"),
... value=EnrichObjectUUIDValue(""),
... spoof_action=EnrichObjectSpoof.REMOVE)
>>> EnrichObjectItem(key=EnrichObjectFixedStringKey("User-Agent"),
... value=EnrichObjectUUIDValue("SP/"),
... spoof_action=EnrichObjectSpoof.APPEND)
>>> EnrichObjectItem(key=EnrichObjectFixedStringKey("Accept-Encoding"),
... value=EnrichObjectFixedStringValue("enrich"))
>>> EnrichObjectItem(key=EnrichObjectFixedStringKey(key='X-Back-URL'),
... value=EnrichObjectTemplateValue('{<substr_extract(connproperty("Filename"), "&xbackurl=", "&") >}'),
... spoof_action=EnrichObjectSpoof.OVERWRITE,
... default_value='')
class activelogic.EnrichObjectSpoof

Defines a set of enrich object spoofs for an enrich object.

Variables:
  • OVERWRITE – EnrichObject spoof is overwrite

  • REMOVE – EnrichObject spoof is remove

  • APPEND – EnrichObject spoof is append

class activelogic.EnrichObjectMiss

Defines a set of enrich object misses for an enrich object.

Variables:
  • IGNORE – EnrichObject miss is ignore

  • USE_DEFAULT – EnrichObject miss is default

class activelogic.EnrichObjectNetObjectSubscriberKey

Defines netobject subscriber key type for an enrich object.

Parameters:

netobjid (int) – Netobject ID

class activelogic.EnrichObjectFixedStringKey

Defines fixed string key type for an enrich object.

Parameters:

key (str) – Fixed string key

class activelogic.EnrichObjectFileNameKey

Defines filename key type for an enrich object.

Parameters:

key (str) – Filename key

class activelogic.EnrichObjectNetObjectSubscriberValue

Defines netobject subscriber value type for an enrich object.

Parameters:

netobjid (int) – Netobject ID value

class activelogic.EnrichObjectFixedStringValue

Defines fixed string value type for an enrich object.

Parameters:

value (str) – Fixed string value

class activelogic.EnrichObjectSessionContextValue

Defines sessioncontext value type for an enrich object.

Parameters:

value (str) – Sessioncontext value

class activelogic.EnrichObjectUUIDValue

Defines UUID value type for an enrich object.

Parameters:

uuid (str) – UUID value

class activelogic.EnrichObjectTemplateValue

Defines template value type for an enrich object.

Parameters:

template (str) – template value