Skip to content

Class KnowledgeIndexState

Namespace: Cephalon.Abstractions.Retrieval
Assembly: Cephalon.Abstractions.dll

Describes the latest managed index and query execution state for one knowledge collection.

public sealed record KnowledgeIndexState : IEquatable<KnowledgeIndexState>

objectKnowledgeIndexState

IEquatable<KnowledgeIndexState>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

KnowledgeIndexState(string, string?, string?, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, int, string, int, int, int, int, int, DateTimeOffset?, string?, int, int, string?, string?, string?, IReadOnlyDictionary<string, string>)

Section titled “ KnowledgeIndexState(string, string?, string?, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, int, string, int, int, int, int, int, DateTimeOffset?, string?, int, int, string?, string?, string?, IReadOnlyDictionary<string, string>)”

Describes the latest managed index and query execution state for one knowledge collection.

public KnowledgeIndexState(string CollectionId, string? LastRunId, string? LastOutcome, DateTimeOffset? LastObservedAtUtc, DateTimeOffset? LastIndexedAtUtc, DateTimeOffset? SourceFreshnessUtc, int DocumentCount, string FreshnessState, int StartedCount, int SucceededCount, int FailedCount, int SkippedCount, int QueryCount, DateTimeOffset? LastQueriedAtUtc, string? LastQueryFingerprint, int LastQueryLength, int LastQueryMatchedCount, string? LastActorId, string? LastCorrelationId, string? LastError, IReadOnlyDictionary<string, string> Metadata)

CollectionId string

The collection identifier represented by this state.

LastRunId string?

The latest indexing run identifier when one has been observed.

LastOutcome string?

The latest indexing outcome when one has been observed.

LastObservedAtUtc DateTimeOffset?

The UTC timestamp when the latest indexing observation was recorded.

LastIndexedAtUtc DateTimeOffset?

The UTC timestamp when the latest replacement index was published.

SourceFreshnessUtc DateTimeOffset?

The newest source-document timestamp observed during the latest successful indexing run.

DocumentCount int

The number of documents currently stored in the managed index.

FreshnessState string

The operator-facing freshness state captured for the latest indexing observation.

StartedCount int

The number of indexing runs that have started.

SucceededCount int

The number of indexing runs that have completed successfully.

FailedCount int

The number of indexing runs that have failed.

SkippedCount int

The number of indexing runs that have been skipped.

QueryCount int

The number of managed queries executed against this collection.

LastQueriedAtUtc DateTimeOffset?

The UTC timestamp when the latest query was executed.

LastQueryFingerprint string?

A non-reversible SHA-256 fingerprint of the latest query text.

LastQueryLength int

The character length of the latest query text.

LastQueryMatchedCount int

The number of matches returned by the latest query.

LastActorId string?

The latest actor identifier when one was supplied by an indexing request.

LastCorrelationId string?

The latest correlation identifier when one was supplied by an indexing request.

LastError string?

The latest operator-facing error summary when indexing failed.

Metadata IReadOnlyDictionary<string, string>

Optional operator-facing metadata captured with the latest indexing observation.

The collection identifier represented by this state.

public string CollectionId { get; init; }

string

The number of documents currently stored in the managed index.

public int DocumentCount { get; init; }

int

The number of indexing runs that have failed.

public int FailedCount { get; init; }

int

The operator-facing freshness state captured for the latest indexing observation.

public string FreshnessState { get; init; }

string

The latest actor identifier when one was supplied by an indexing request.

public string? LastActorId { get; init; }

string?

The latest correlation identifier when one was supplied by an indexing request.

public string? LastCorrelationId { get; init; }

string?

The latest operator-facing error summary when indexing failed.

public string? LastError { get; init; }

string?

The UTC timestamp when the latest replacement index was published.

public DateTimeOffset? LastIndexedAtUtc { get; init; }

DateTimeOffset?

The UTC timestamp when the latest indexing observation was recorded.

public DateTimeOffset? LastObservedAtUtc { get; init; }

DateTimeOffset?

The latest indexing outcome when one has been observed.

public string? LastOutcome { get; init; }

string?

The UTC timestamp when the latest query was executed.

public DateTimeOffset? LastQueriedAtUtc { get; init; }

DateTimeOffset?

A non-reversible SHA-256 fingerprint of the latest query text.

public string? LastQueryFingerprint { get; init; }

string?

The character length of the latest query text.

public int LastQueryLength { get; init; }

int

The number of matches returned by the latest query.

public int LastQueryMatchedCount { get; init; }

int

The latest indexing run identifier when one has been observed.

public string? LastRunId { get; init; }

string?

Optional operator-facing metadata captured with the latest indexing observation.

public IReadOnlyDictionary<string, string> Metadata { get; init; }

IReadOnlyDictionary<string, string>

The number of managed queries executed against this collection.

public int QueryCount { get; init; }

int

The number of indexing runs that have been skipped.

public int SkippedCount { get; init; }

int

The newest source-document timestamp observed during the latest successful indexing run.

public DateTimeOffset? SourceFreshnessUtc { get; init; }

DateTimeOffset?

The number of indexing runs that have started.

public int StartedCount { get; init; }

int

The number of indexing runs that have completed successfully.

public int SucceededCount { get; init; }

int

Gets the total number of indexing observations recorded for this collection.

public int TotalIndexRuns { get; }

int