KnowledgeBaseActivityRecord Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseActivityRecord
- com.
Implements
public class KnowledgeBaseActivityRecord
implements JsonSerializable<KnowledgeBaseActivityRecord>
Base type for activity records. Tracks execution details, timing, and errors for knowledge base operations.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | KnowledgeBaseActivityRecord(int id) |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
| Integer |
getElapsedMs()
Get the elapsed |
|
Knowledge |
getError()
Get the error property: The error detail explaining why the operation failed. |
| int |
getId()
Get the id property: The ID of the activity record. |
|
Knowledge |
getType()
Get the type property: The type of the activity record. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeBaseActivityRecord
protected KnowledgeBaseActivityRecord(int id)
Creates an instance of KnowledgeBaseActivityRecord class.
Parameters:
Method Details
fromJson
public static KnowledgeBaseActivityRecord fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeBaseActivityRecord from the JsonReader.
Parameters:
Returns:
Throws:
getElapsedMs
public Integer getElapsedMs()
Get the elapsedMs property: The elapsed time in milliseconds for the retrieval activity.
Returns:
getError
public KnowledgeBaseErrorDetail getError()
Get the error property: The error detail explaining why the operation failed. This property is only included when the activity does not succeed.
Returns:
getId
public int getId()
Get the id property: The ID of the activity record.
Returns:
getType
public KnowledgeBaseActivityRecordType getType()
Get the type property: The type of the activity record.
Returns: