ข้ามไปยังเนื้อหา

Class CdcCaptureRuntimeObservation

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Describes one operator-facing runtime observation reported for a CDC capture by an execution runtime.

public sealed class CdcCaptureRuntimeObservation

objectCdcCaptureRuntimeObservation

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

CdcCaptureRuntimeObservation(string, string, DateTimeOffset, string?, int, int, string?, string?, string?, CdcCaptureFreshnessStatus?, CdcCaptureLagStatus?, CdcCapturePublicationStatus?, IReadOnlyDictionary<string, string>?, string?, string?)

Section titled “ CdcCaptureRuntimeObservation(string, string, DateTimeOffset, string?, int, int, string?, string?, string?, CdcCaptureFreshnessStatus?, CdcCaptureLagStatus?, CdcCapturePublicationStatus?, IReadOnlyDictionary<string, string>?, string?, string?)”

Creates a new CDC capture runtime observation.

[JsonConstructor]
public CdcCaptureRuntimeObservation(string cdcCaptureId, string outcome, DateTimeOffset observedAtUtc, string? reportId = null, int capturedChangeCount = 0, int producedMessageCount = 0, string? changeId = null, string? checkpoint = null, string? error = null, CdcCaptureFreshnessStatus? freshness = null, CdcCaptureLagStatus? lag = null, CdcCapturePublicationStatus? publication = null, IReadOnlyDictionary<string, string>? metadata = null, string? reporterId = null, string? edgeNodeId = null)

cdcCaptureId string

The stable CDC capture identifier that produced the observation.

outcome string

The stable outcome identifier, such as started, captured, idle, or failed.

observedAtUtc DateTimeOffset

The UTC timestamp when the observation occurred.

reportId string?

The optional stable report identifier used to make repeated external observation submissions idempotent.

capturedChangeCount int

The number of source changes observed by this report.

producedMessageCount int

The number of outbox messages produced by this report.

changeId string?

The latest provider-facing change identifier when available.

checkpoint string?

The latest provider-facing checkpoint or cursor when available.

error string?

The operator-facing error summary when the observation represents a failure.

freshness CdcCaptureFreshnessStatus?

An optional typed freshness answer reported by the active provider/runtime.

lag CdcCaptureLagStatus?

An optional typed lag answer reported by the active provider/runtime.

publication CdcCapturePublicationStatus?

An optional typed publication-posture answer reported by the active provider/runtime.

metadata IReadOnlyDictionary<string, string>?

Optional operator-facing metadata captured alongside the observation.

reporterId string?

The optional stable reporter identity that submitted the observation, such as an external runner instance or edge agent id.

edgeNodeId string?

The optional stable edge-node identifier that originated the observation when the runtime topology is edge-aware.

Gets the number of source changes observed by this report.

public int CapturedChangeCount { get; }

int

Gets the stable CDC capture identifier that produced the observation.

public string CdcCaptureId { get; }

string

Gets the latest provider-facing change identifier when one was reported.

public string? ChangeId { get; }

string?

Gets the latest provider-facing checkpoint or cursor when one was reported.

public string? Checkpoint { get; }

string?

Gets the stable edge-node identifier that originated the observation when one was supplied.

public string? EdgeNodeId { get; }

string?

Gets the operator-facing error summary when the observation represents a failure.

public string? Error { get; }

string?

Gets the typed freshness answer reported by the active provider/runtime when one was supplied.

public CdcCaptureFreshnessStatus? Freshness { get; }

CdcCaptureFreshnessStatus?

Gets the typed lag answer reported by the active provider/runtime when one was supplied.

public CdcCaptureLagStatus? Lag { get; }

CdcCaptureLagStatus?

Gets optional operator-facing metadata captured alongside the observation.

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

IReadOnlyDictionary<string, string>

Gets the UTC timestamp when the observation occurred.

public DateTimeOffset ObservedAtUtc { get; }

DateTimeOffset

Gets the stable outcome identifier for the observed CDC activity.

public string Outcome { get; }

string

Gets the number of outbox messages produced by this report.

public int ProducedMessageCount { get; }

int

Gets the typed publication-posture answer reported by the active provider/runtime when one was supplied.

public CdcCapturePublicationStatus? Publication { get; }

CdcCapturePublicationStatus?

Gets the optional stable report identifier used to make repeated submissions idempotent.

public string? ReportId { get; }

string?

Gets the stable reporter identity that submitted the observation when one was supplied.

public string? ReporterId { get; }

string?