trait Page extends ThriftStruct with Product9[Url, Option[Set[String]], Option[Platform], Option[String], Option[String], Option[Set[String]], Option[Set[String]], Option[Set[Tag]], Option[Podcast]] with HasThriftStructCodec3[Page] with Serializable
Prefer the companion object's ophan.thrift.event.Page.apply for construction if you don't need to specify passthrough fields.
- Alphabetic
- By Inheritance
- Page
- Serializable
- HasThriftStructCodec3
- Product9
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
campaignCodes: Option[Set[String]]
The values of all of the CMP and INTCMP parameters
-
abstract
def
contentTypes: Option[Set[String]]
Returns some approximation of the content type, generated by the serving platform.
Returns some approximation of the content type, generated by the serving platform.
Currently, next-gen produces a maximum of one entry whereas R2 generates a number of varying entries. Native mobile apps produce nothing. There is little consistency between the strings that the platforms report.
As a result, you are strongly advised not to make use of this field unless you have a really good reason to do so. It will likely be removed at some point in the future.
-
abstract
def
platform: Option[Platform]
The platform that served this page.
The platform that served this page. Marked as optional because when new platforms are added and your thrift definition hasn't been updated, this will become empty. *
-
abstract
def
podcast: Option[Podcast]
Additional information for pageviews that refer to a podcast
-
abstract
def
publicationDate: Option[String]
For most content pages, the publication date of the content, in ISO date format "YYYY-MM-DD" e.g.
For most content pages, the publication date of the content, in ISO date format "YYYY-MM-DD" e.g. 2014-01-20
Note this is currently extracted from the url, though in the future more advanced techiniques may be used to calculate this data.
Fronts will never have a publication date.
-
abstract
def
renderedComponents: Option[Set[String]]
The set of component names that were rendered on this page.
The set of component names that were rendered on this page. Currently only reported by next-gen, this can be used to validate the effectiveness of particular components.
-
abstract
def
section: Option[String]
The section id of the page.
The section id of the page.
Network front pages (e.g. "/uk") are assigned to a section named "/" (a single slash).
Note this is currently extracted from the url, though in the future more advanced techiniques may be used to caluclate this data.
Will always be undefined for non www.theguardian.com urls.
-
abstract
def
tags: Option[Set[Tag]]
The set of tags that were rendered on this page.
The set of tags that were rendered on this page. This field is being tracked from June 2016.
-
abstract
def
url: Url
Url of the page served
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: Url
- Definition Classes
- Page → Product9
-
def
_2: Option[Set[String]]
- Definition Classes
- Page → Product9
-
def
_3: Option[Platform]
- Definition Classes
- Page → Product9
-
def
_4: Option[String]
- Definition Classes
- Page → Product9
-
def
_5: Option[String]
- Definition Classes
- Page → Product9
-
def
_6: Option[Set[String]]
- Definition Classes
- Page → Product9
-
def
_7: Option[Set[String]]
- Definition Classes
- Page → Product9
-
def
_8: Option[Set[Tag]]
- Definition Classes
- Page → Product9
-
def
_9: Option[Podcast]
- Definition Classes
- Page → Product9
-
def
_codec: ThriftStructCodec3[Page]
- Definition Classes
- Page → HasThriftStructCodec3
- def _passthroughFields: Map[Short, TFieldBlob]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- Page → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def copy(url: Url = this.url, campaignCodes: Option[Set[String]] = this.campaignCodes, platform: Option[Platform] = this.platform, section: Option[String] = this.section, publicationDate: Option[String] = this.publicationDate, contentTypes: Option[Set[String]] = this.contentTypes, renderedComponents: Option[Set[String]] = this.renderedComponents, tags: Option[Set[Tag]] = this.tags, podcast: Option[Podcast] = this.podcast, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): Page
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Page → 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
- Page → 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
- Page → Product9 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- Page → Product9 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Page → Product
-
def
setField(_blob: TFieldBlob): Page
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
- Page → AnyRef → Any
- def toTuple: (Url, Option[Set[String]], Option[Platform], Option[String], Option[String], Option[Set[String]], Option[Set[String]], Option[Set[Tag]], Option[Podcast])
- def unsetCampaignCodes: Page
- def unsetContentTypes: Page
-
def
unsetField(_fieldId: Short): Page
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 unsetPlatform: Page
- def unsetPodcast: Page
- def unsetPublicationDate: Page
- def unsetRenderedComponents: Page
- def unsetSection: Page
- def unsetTags: Page
-
def
unsetUrl: Page
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
- Page → ThriftStruct