public class LogQueryResponseResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
LogQueryResponseResult.DocumentType
The type of log entry returned.
|
static interface |
LogQueryResponseResult.EventType
The type of event that this object respresents.
|
static interface |
LogQueryResponseResult.ResultType
The type of result that this **event** is associated with.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
clientTimestamp |
protected java.lang.String |
collectionId |
protected java.util.Date |
createdTimestamp |
protected java.lang.String |
customerId |
protected java.lang.Long |
displayRank |
protected java.lang.String |
documentId |
protected LogQueryResponseResultDocuments |
documentResults |
protected java.lang.String |
documentType |
protected java.lang.String |
environmentId |
protected java.lang.String |
eventType |
protected java.lang.String |
naturalLanguageQuery |
protected java.lang.String |
queryId |
protected java.lang.String |
resultType |
protected java.lang.String |
sessionToken |
Constructor and Description |
---|
LogQueryResponseResult() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getClientTimestamp()
Gets the clientTimestamp.
|
java.lang.String |
getCollectionId()
Gets the collectionId.
|
java.util.Date |
getCreatedTimestamp()
Gets the createdTimestamp.
|
java.lang.String |
getCustomerId()
Gets the customerId.
|
java.lang.Long |
getDisplayRank()
Gets the displayRank.
|
java.lang.String |
getDocumentId()
Gets the documentId.
|
LogQueryResponseResultDocuments |
getDocumentResults()
Gets the documentResults.
|
java.lang.String |
getDocumentType()
Gets the documentType.
|
java.lang.String |
getEnvironmentId()
Gets the environmentId.
|
java.lang.String |
getEventType()
Gets the eventType.
|
java.lang.String |
getNaturalLanguageQuery()
Gets the naturalLanguageQuery.
|
java.lang.String |
getQueryId()
Gets the queryId.
|
java.lang.String |
getResultType()
Gets the resultType.
|
java.lang.String |
getSessionToken()
Gets the sessionToken.
|
@SerializedName(value="environment_id") protected java.lang.String environmentId
@SerializedName(value="customer_id") protected java.lang.String customerId
@SerializedName(value="document_type") protected java.lang.String documentType
@SerializedName(value="natural_language_query") protected java.lang.String naturalLanguageQuery
@SerializedName(value="document_results") protected LogQueryResponseResultDocuments documentResults
@SerializedName(value="created_timestamp") protected java.util.Date createdTimestamp
@SerializedName(value="client_timestamp") protected java.util.Date clientTimestamp
@SerializedName(value="query_id") protected java.lang.String queryId
@SerializedName(value="session_token") protected java.lang.String sessionToken
@SerializedName(value="collection_id") protected java.lang.String collectionId
@SerializedName(value="display_rank") protected java.lang.Long displayRank
@SerializedName(value="document_id") protected java.lang.String documentId
@SerializedName(value="event_type") protected java.lang.String eventType
@SerializedName(value="result_type") protected java.lang.String resultType
public java.lang.String getEnvironmentId()
The environment ID that is associated with this log entry.
public java.lang.String getCustomerId()
The **customer_id** label that was specified in the header of the query or event API call that corresponds to this log entry.
public java.lang.String getDocumentType()
The type of log entry returned.
**query** indicates that the log represents the results of a call to the single collection **query** method.
**event** indicates that the log represents a call to the **events** API.
public java.lang.String getNaturalLanguageQuery()
The value of the **natural_language_query** query parameter that was used to create these results. Only returned with logs of type **query**.
**Note:** Other query parameters (such as **filter** or **deduplicate**) might have been used with this query, but are not recorded.
public LogQueryResponseResultDocuments getDocumentResults()
Object containing result information that was returned by the query used to create this log entry. Only returned with logs of type `query`.
public java.util.Date getCreatedTimestamp()
Date that the log result was created. Returned in `YYYY-MM-DDThh:mm:ssZ` format.
public java.util.Date getClientTimestamp()
Date specified by the user when recording an event. Returned in `YYYY-MM-DDThh:mm:ssZ` format. Only returned with logs of type **event**.
public java.lang.String getQueryId()
Identifier that corresponds to the **natural_language_query** string used in the original or associated query. All **event** and **query** log entries that have the same original **natural_language_query** string also have them same **query_id**. This field can be used to recall all **event** and **query** log results that have the same original query (**event** logs do not contain the original **natural_language_query** field).
public java.lang.String getSessionToken()
Unique identifier (within a 24-hour period) that identifies a single `query` log and any `event` logs that were created for it.
**Note:** If the exact same query is run at the exact same time on different days, the **session_token** for those queries might be identical. However, the **created_timestamp** differs.
**Note:** Session tokens are case sensitive. To avoid matching on session tokens that are identical except for case, use the exact match operator (`::`) when you query for a specific session token.
public java.lang.String getCollectionId()
The collection ID of the document associated with this event. Only returned with logs of type `event`.
public java.lang.Long getDisplayRank()
The original display rank of the document associated with this event. Only returned with logs of type `event`.
public java.lang.String getDocumentId()
The document ID of the document associated with this event. Only returned with logs of type `event`.
public java.lang.String getEventType()
The type of event that this object respresents. Possible values are
- `query` the log of a query to a collection
- `click` the result of a call to the **events** endpoint.
public java.lang.String getResultType()
The type of result that this **event** is associated with. Only returned with logs of type `event`.