Class LogQueryResponseResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class LogQueryResponseResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogQueryResponseResult.DocumentTypeThe type of log entry returned.static interfaceLogQueryResponseResult.EventTypeThe type of event that this object respresents.static interfaceLogQueryResponseResult.ResultTypeThe type of result that this **event** is associated with. -
Constructor Summary
Constructors Constructor Description LogQueryResponseResult() -
Method Summary
Modifier and Type Method Description DategetClientTimestamp()Gets the clientTimestamp.StringgetCollectionId()Gets the collectionId.DategetCreatedTimestamp()Gets the createdTimestamp.StringgetCustomerId()Gets the customerId.LonggetDisplayRank()Gets the displayRank.StringgetDocumentId()Gets the documentId.LogQueryResponseResultDocumentsgetDocumentResults()Gets the documentResults.StringgetDocumentType()Gets the documentType.StringgetEnvironmentId()Gets the environmentId.StringgetEventType()Gets the eventType.StringgetNaturalLanguageQuery()Gets the naturalLanguageQuery.StringgetQueryId()Gets the queryId.StringgetResultType()Gets the resultType.StringgetSessionToken()Gets the sessionToken.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
LogQueryResponseResult
public LogQueryResponseResult()
-
-
Method Details
-
getEnvironmentId
Gets the environmentId.The environment ID that is associated with this log entry.
- Returns:
- the environmentId
-
getCustomerId
Gets the customerId.The **customer_id** label that was specified in the header of the query or event API call that corresponds to this log entry.
- Returns:
- the customerId
-
getDocumentType
Gets the documentType.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.
- Returns:
- the documentType
-
getNaturalLanguageQuery
Gets the naturalLanguageQuery.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.
- Returns:
- the naturalLanguageQuery
-
getDocumentResults
Gets the documentResults.Object containing result information that was returned by the query used to create this log entry. Only returned with logs of type `query`.
- Returns:
- the documentResults
-
getCreatedTimestamp
Gets the createdTimestamp.Date that the log result was created. Returned in `YYYY-MM-DDThh:mm:ssZ` format.
- Returns:
- the createdTimestamp
-
getClientTimestamp
Gets the clientTimestamp.Date specified by the user when recording an event. Returned in `YYYY-MM-DDThh:mm:ssZ` format. Only returned with logs of type **event**.
- Returns:
- the clientTimestamp
-
getQueryId
Gets the queryId.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).
- Returns:
- the queryId
-
getSessionToken
Gets the sessionToken.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.
- Returns:
- the sessionToken
-
getCollectionId
Gets the collectionId.The collection ID of the document associated with this event. Only returned with logs of type `event`.
- Returns:
- the collectionId
-
getDisplayRank
Gets the displayRank.The original display rank of the document associated with this event. Only returned with logs of type `event`.
- Returns:
- the displayRank
-
getDocumentId
Gets the documentId.The document ID of the document associated with this event. Only returned with logs of type `event`.
- Returns:
- the documentId
-
getEventType
Gets the eventType.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.
- Returns:
- the eventType
-
getResultType
Gets the resultType.The type of result that this **event** is associated with. Only returned with logs of type `event`.
- Returns:
- the resultType
-