Class KnowledgeAgentSearchActivityRecord
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
com.azure.search.documents.agents.models.KnowledgeAgentSearchActivityRecord
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>
Represents a retrieval activity record.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentSearchActivityRecord class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentSearchActivityRecord from the JsonReader.getCount()Get the count property: The count of documents retrieved.Get the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.getQuery()Get the query property: The query details for the retrieval activity.Get the queryTime property: The query time for this retrieval activity.Get the targetIndex property: The target index for the retrieval activity.getType()Get the type property: The type of the activity record.Set the count property: The count of documents retrieved.setElapsedMs(Integer elapsedMs) Set the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.Set the query property: The query details for the retrieval activity.setQueryTime(OffsetDateTime queryTime) Set the queryTime property: The query time for this retrieval activity.setTargetIndex(String targetIndex) Set the targetIndex property: The target index for the retrieval activity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.agents.models.KnowledgeAgentActivityRecord
getIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeAgentSearchActivityRecord
public KnowledgeAgentSearchActivityRecord(int id) Creates an instance of KnowledgeAgentSearchActivityRecord class.- Parameters:
id- the id value to set.
-
-
Method Details
-
getType
Get the type property: The type of the activity record.- Overrides:
getTypein classKnowledgeAgentActivityRecord- Returns:
- the type value.
-
getTargetIndex
Get the targetIndex property: The target index for the retrieval activity.- Returns:
- the targetIndex value.
-
setTargetIndex
Set the targetIndex property: The target index for the retrieval activity.- Parameters:
targetIndex- the targetIndex value to set.- Returns:
- the KnowledgeAgentSearchActivityRecord object itself.
-
getQuery
Get the query property: The query details for the retrieval activity.- Returns:
- the query value.
-
setQuery
Set the query property: The query details for the retrieval activity.- Parameters:
query- the query value to set.- Returns:
- the KnowledgeAgentSearchActivityRecord object itself.
-
getQueryTime
Get the queryTime property: The query time for this retrieval activity.- Returns:
- the queryTime value.
-
setQueryTime
Set the queryTime property: The query time for this retrieval activity.- Parameters:
queryTime- the queryTime value to set.- Returns:
- the KnowledgeAgentSearchActivityRecord object itself.
-
getCount
Get the count property: The count of documents retrieved.- Returns:
- the count value.
-
setCount
Set the count property: The count of documents retrieved.- Parameters:
count- the count value to set.- Returns:
- the KnowledgeAgentSearchActivityRecord object itself.
-
getElapsedMs
Get the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.- Returns:
- the elapsedMs value.
-
setElapsedMs
Set the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.- Parameters:
elapsedMs- the elapsedMs value to set.- Returns:
- the KnowledgeAgentSearchActivityRecord object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentActivityRecord>- Overrides:
toJsonin classKnowledgeAgentActivityRecord- Throws:
IOException
-
fromJson
public static KnowledgeAgentSearchActivityRecord fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentSearchActivityRecord from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentSearchActivityRecord if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeAgentSearchActivityRecord.
-