KnowledgeSourceStatus Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeSourceStatus
- com.
Implements
public final class KnowledgeSourceStatus
implements JsonSerializable<KnowledgeSourceStatus>
Represents the status and synchronization history of a knowledge source.
Constructor Summary
| Constructor | Description |
|---|---|
| KnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus) |
Creates an instance of Knowledge |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Knowledge |
fromJson(JsonReader jsonReader)
Reads an instance of Knowledge |
|
Synchronization |
getCurrentSynchronizationState()
Get the current |
|
Knowledge |
getKind()
Get the kind property: Identifies the Knowledge Source kind directly from the Status response. |
|
Completed |
getLastSynchronizationState()
Get the last |
|
Knowledge |
getStatistics()
Get the statistics property: Statistical information about the knowledge source synchronization history. |
| Duration |
getSynchronizationInterval()
Get the synchronization |
|
Knowledge |
getSynchronizationStatus()
Get the synchronization |
|
Knowledge |
setCurrentSynchronizationState(SynchronizationState currentSynchronizationState)
Set the current |
|
Knowledge |
setKind(KnowledgeSourceKind kind)
Set the kind property: Identifies the Knowledge Source kind directly from the Status response. |
|
Knowledge |
setLastSynchronizationState(CompletedSynchronizationState lastSynchronizationState)
Set the last |
|
Knowledge |
setStatistics(KnowledgeSourceStatistics statistics)
Set the statistics property: Statistical information about the knowledge source synchronization history. |
|
Knowledge |
setSynchronizationInterval(Duration synchronizationInterval)
Set the synchronization |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
KnowledgeSourceStatus
public KnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus)
Creates an instance of KnowledgeSourceStatus class.
Parameters:
Method Details
fromJson
public static KnowledgeSourceStatus fromJson(JsonReader jsonReader)
Reads an instance of KnowledgeSourceStatus from the JsonReader.
Parameters:
Returns:
Throws:
getCurrentSynchronizationState
public SynchronizationState getCurrentSynchronizationState()
Get the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.
Returns:
getKind
public KnowledgeSourceKind getKind()
Get the kind property: Identifies the Knowledge Source kind directly from the Status response.
Returns:
getLastSynchronizationState
public CompletedSynchronizationState getLastSynchronizationState()
Get the lastSynchronizationState property: Details of the last completed synchronization. Null on first sync.
Returns:
getStatistics
public KnowledgeSourceStatistics getStatistics()
Get the statistics property: Statistical information about the knowledge source synchronization history. Null on first sync.
Returns:
getSynchronizationInterval
public Duration getSynchronizationInterval()
Get the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured.
Returns:
getSynchronizationStatus
public KnowledgeSourceSynchronizationStatus getSynchronizationStatus()
Get the synchronizationStatus property: The current synchronization status.
Returns:
setCurrentSynchronizationState
public KnowledgeSourceStatus setCurrentSynchronizationState(SynchronizationState currentSynchronizationState)
Set the currentSynchronizationState property: Current synchronization state that spans multiple indexer runs.
Parameters:
Returns:
setKind
public KnowledgeSourceStatus setKind(KnowledgeSourceKind kind)
Set the kind property: Identifies the Knowledge Source kind directly from the Status response.
Parameters:
Returns:
setLastSynchronizationState
public KnowledgeSourceStatus setLastSynchronizationState(CompletedSynchronizationState lastSynchronizationState)
Set the lastSynchronizationState property: Details of the last completed synchronization. Null on first sync.
Parameters:
Returns:
setStatistics
public KnowledgeSourceStatus setStatistics(KnowledgeSourceStatistics statistics)
Set the statistics property: Statistical information about the knowledge source synchronization history. Null on first sync.
Parameters:
Returns:
setSynchronizationInterval
public KnowledgeSourceStatus setSynchronizationInterval(Duration synchronizationInterval)
Set the synchronizationInterval property: The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured.
Parameters:
Returns: