LogQueryResponseResult
public struct LogQueryResponseResult : Codable, Equatable
Individual result object for a logs query. Each object represents either a query to a Discovery collection or an event that is associated with a query.
-
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.
See moreDeclaration
Swift
public enum DocumentType : String
-
The type of event that this object respresents. Possible values are
query
the log of a query to a collectionclick
the result of a call to the events endpoint.
Declaration
Swift
public enum EventType : String
-
The type of result that this event is associated with. Only returned with logs of type
See moreevent
.Declaration
Swift
public enum ResultType : String
-
The environment ID that is associated with this log entry.
Declaration
Swift
public var environmentID: String?
-
The customer_id label that was specified in the header of the query or event API call that corresponds to this log entry.
Declaration
Swift
public var customerID: String?
-
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.
Declaration
Swift
public var documentType: String?
-
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.
Declaration
Swift
public var naturalLanguageQuery: String?
-
Object containing result information that was returned by the query used to create this log entry. Only returned with logs of type
query
.Declaration
Swift
public var documentResults: LogQueryResponseResultDocuments?
-
Date that the log result was created. Returned in
YYYY-MM-DDThh:mm:ssZ
format.Declaration
Swift
public var createdTimestamp: Date?
-
Date specified by the user when recording an event. Returned in
YYYY-MM-DDThh:mm:ssZ
format. Only returned with logs of type event.Declaration
Swift
public var clientTimestamp: Date?
-
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).
Declaration
Swift
public var queryID: String?
-
Unique identifier (within a 24-hour period) that identifies a single
query
log and anyevent
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.Declaration
Swift
public var sessionToken: String?
-
The collection ID of the document associated with this event. Only returned with logs of type
event
.Declaration
Swift
public var collectionID: String?
-
The original display rank of the document associated with this event. Only returned with logs of type
event
.Declaration
Swift
public var displayRank: Int?
-
The document ID of the document associated with this event. Only returned with logs of type
event
.Declaration
Swift
public var documentID: String?
-
The type of event that this object respresents. Possible values are
query
the log of a query to a collectionclick
the result of a call to the events endpoint.
Declaration
Swift
public var eventType: String?
-
The type of result that this event is associated with. Only returned with logs of type
event
.Declaration
Swift
public var resultType: String?