Class EventData

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.EventData
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class EventData
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Query event data object.
  • Method Details

    • newBuilder

      public EventData.Builder newBuilder()
      New builder.
      Returns:
      a EventData builder
    • environmentId

      public String environmentId()
      Gets the environmentId.

      The **environment_id** associated with the query that the event is associated with.

      Returns:
      the environmentId
    • sessionToken

      public String sessionToken()
      Gets the sessionToken.

      The session token that was returned as part of the query results that this event is associated with.

      Returns:
      the sessionToken
    • clientTimestamp

      public Date clientTimestamp()
      Gets the clientTimestamp.

      The optional timestamp for the event that was created. If not provided, the time that the event was created in the log was used.

      Returns:
      the clientTimestamp
    • displayRank

      public Long displayRank()
      Gets the displayRank.

      The rank of the result item which the event is associated with.

      Returns:
      the displayRank
    • collectionId

      public String collectionId()
      Gets the collectionId.

      The **collection_id** of the document that this event is associated with.

      Returns:
      the collectionId
    • documentId

      public String documentId()
      Gets the documentId.

      The **document_id** of the document that this event is associated with.

      Returns:
      the documentId
    • queryId

      public String queryId()
      Gets the queryId.

      The query identifier stored in the log. The query and any events associated with that query are stored with the same **query_id**.

      Returns:
      the queryId