trait PageView extends ThriftStruct with Product13[SuspectStatus, Page, Option[UserAgent], Option[GeoLocation], Option[IpAddress], Option[Referrer], Short, Option[Int], Option[Int], Option[Double], Option[Boolean], Option[SubscriptionType], Option[MembershipTier]] with HasThriftStructCodec3[PageView] with Serializable
Prefer the companion object's ophan.thrift.event.PageView.apply for construction if you don't need to specify passthrough fields.
- Alphabetic
- By Inheritance
- PageView
- Serializable
- HasThriftStructCodec3
- Product13
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
averageDaysBetweenRecentVisits: Option[Double]
Calculated average days between recent visits.
Calculated average days between recent visits.
Note, this is actually calculated in a way to make discount older visits:
min(56, daysSinceFirstVisit + 1) / daysVisitedInLast56days
This field is accurately populated starting from 2016-06-09
-
abstract
def
daysVisitedInLastWeek: Option[Int]
The number of days in the previous week that the device has had a page view recorded on the Guardian
-
abstract
def
httpStatus: Short
The http status returned to the user for this page view
-
abstract
def
ipAddress: Option[IpAddress]
IP details of the user who made this request *
-
abstract
def
location: Option[GeoLocation]
Details about the location of the user made this request
- abstract def membershipTier: Option[MembershipTier]
-
abstract
def
page: Page
Details about the page displayed
-
abstract
def
referrer: Option[Referrer]
Details about the referrer to this page view Will only be present on _PAGE_VIEW events where a referer was received
-
abstract
def
regular: Option[Boolean]
Is this browser a regular visitor to the Guardian?
Is this browser a regular visitor to the Guardian?
i.e. totalDaysVisited >= 8 && averageDaysBetweenRecentVisits <= 7
- abstract def subscriptionType: Option[SubscriptionType]
-
abstract
def
totalDaysVisited: Option[Int]
Total number of days on which this browser has visited the guardian, ever.
Total number of days on which this browser has visited the guardian, ever. (Or, at least, since the slab's records began, which is since June 2015.)
Includes "today" so this number should never be less than 1.
This field is accurately populated starting from 2016-06-09
-
abstract
def
userAgent: Option[UserAgent]
The user agent that made this request
-
abstract
def
validity: SuspectStatus
Whether we view this event as "suspect".
Whether we view this event as "suspect". most consumers of this stream should ignore events that are do not have a status of VALID.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: SuspectStatus
- Definition Classes
- PageView → Product13
-
def
_10: Option[Double]
- Definition Classes
- PageView → Product13
-
def
_11: Option[Boolean]
- Definition Classes
- PageView → Product13
-
def
_12: Option[SubscriptionType]
- Definition Classes
- PageView → Product13
-
def
_13: Option[MembershipTier]
- Definition Classes
- PageView → Product13
-
def
_2: Page
- Definition Classes
- PageView → Product13
-
def
_3: Option[UserAgent]
- Definition Classes
- PageView → Product13
-
def
_4: Option[GeoLocation]
- Definition Classes
- PageView → Product13
-
def
_5: Option[IpAddress]
- Definition Classes
- PageView → Product13
-
def
_6: Option[Referrer]
- Definition Classes
- PageView → Product13
-
def
_7: Short
- Definition Classes
- PageView → Product13
-
def
_8: Option[Int]
- Definition Classes
- PageView → Product13
-
def
_9: Option[Int]
- Definition Classes
- PageView → Product13
-
def
_codec: ThriftStructCodec3[PageView]
- Definition Classes
- PageView → HasThriftStructCodec3
- def _passthroughFields: Map[Short, TFieldBlob]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- PageView → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def copy(validity: SuspectStatus = this.validity, page: Page = this.page, userAgent: Option[UserAgent] = this.userAgent, location: Option[GeoLocation] = this.location, ipAddress: Option[IpAddress] = this.ipAddress, referrer: Option[Referrer] = this.referrer, httpStatus: Short = this.httpStatus, daysVisitedInLastWeek: Option[Int] = this.daysVisitedInLastWeek, totalDaysVisited: Option[Int] = this.totalDaysVisited, averageDaysBetweenRecentVisits: Option[Double] = this.averageDaysBetweenRecentVisits, regular: Option[Boolean] = this.regular, subscriptionType: Option[SubscriptionType] = this.subscriptionType, membershipTier: Option[MembershipTier] = this.membershipTier, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): PageView
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- PageView → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFieldBlob(_fieldId: Short): Option[TFieldBlob]
Gets a field value encoded as a binary blob using TCompactProtocol.
Gets a field value encoded as a binary blob using TCompactProtocol. If the specified field is present in the passthrough map, that value is returned. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.
-
def
getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]
Collects TCompactProtocol-encoded field values according to
getFieldBlob
into a map. -
def
hashCode(): Int
- Definition Classes
- PageView → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productArity: Int
- Definition Classes
- PageView → Product13 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- PageView → Product13 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- PageView → Product
-
def
setField(_blob: TFieldBlob): PageView
Sets a field using a TCompactProtocol-encoded binary blob.
Sets a field using a TCompactProtocol-encoded binary blob. If the field is a known field, the blob is decoded and the field is set to the decoded value. If the field is unknown and passthrough fields are enabled, then the blob will be stored in _passthroughFields.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- PageView → AnyRef → Any
- def toTuple: (SuspectStatus, Page, Option[UserAgent], Option[GeoLocation], Option[IpAddress], Option[Referrer], Short, Option[Int], Option[Int], Option[Double], Option[Boolean], Option[SubscriptionType], Option[MembershipTier])
- def unsetAverageDaysBetweenRecentVisits: PageView
- def unsetDaysVisitedInLastWeek: PageView
-
def
unsetField(_fieldId: Short): PageView
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- def unsetHttpStatus: PageView
- def unsetIpAddress: PageView
- def unsetLocation: PageView
- def unsetMembershipTier: PageView
- def unsetPage: PageView
- def unsetReferrer: PageView
- def unsetRegular: PageView
- def unsetSubscriptionType: PageView
- def unsetTotalDaysVisited: PageView
- def unsetUserAgent: PageView
-
def
unsetValidity: PageView
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write(_oprot: TProtocol): Unit
- Definition Classes
- PageView → ThriftStruct