Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 23 additions & 21 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,36 +146,38 @@
| `state` | string | Current replication state |
| `info` | string | Additional information about the current state|
| `error`| string | (optional): The error message if the operation failed.
| `lagTime` | number | Current lag time in logical seconds between source and target clusters. |
| `eventsProcessed` | number | Total events processed |
| `lastReplicatedOpTime` | string | The last replicated operation time.|
| `lagTimeSeconds` | number | Current lag time in logical seconds between source and target clusters. |
| `eventsRead` | number | Total number of events read from the source |
| `eventsApplied` | number | Total number of events applied to the target |
| `lastReplicatedOpTime.ts` | string | The timestamp of the last replicated operation time. |
| `lastReplicatedOpTime.isoDate` | date.Time | The human-readable representation of the last replicated operation time. |

Check failure on line 153 in docs/api.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/api.md#L153

[Google.Spacing] 'e.T' should have one space.
Raw output
{"message": "[Google.Spacing] 'e.T' should have one space.", "location": {"path": "docs/api.md", "range": {"start": {"line": 153, "column": 39}}}, "severity": "ERROR"}
| `initialSync.completed` | boolean | Initial sync completion status |
| `initialSync.lagTime` | number | The lag time in logical seconds until the initial sync completed|
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field initialSync.lagTime is documented but not shown in the example response. Either add it to the example or remove from documentation if it's no longer supported.

Copilot uses AI. Check for mistakes.
| `initialSync.cloneCompleted` | boolean | Clone process completion status |
| `initialSync.estimatedCloneSize` | number | Estimated total size to clone (bytes) |
| `initialSync.clonedSize` | number | Current cloned size (bytes) |
| `initialSync.estimatedCloneSizeBytes` | number | Estimated total size to clone (bytes) |

Check notice on line 157 in docs/api.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/api.md#L157

[Google.Parens] Use parentheses judiciously.
Raw output
{"message": "[Google.Parens] Use parentheses judiciously.", "location": {"path": "docs/api.md", "range": {"start": {"line": 157, "column": 82}}}, "severity": "INFO"}
| `initialSync.clonedSizeBytes` | number | Current cloned size (bytes) |

Check notice on line 158 in docs/api.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/api.md#L158

[Google.Parens] Use parentheses judiciously.
Raw output
{"message": "[Google.Parens] Use parentheses judiciously.", "location": {"path": "docs/api.md", "range": {"start": {"line": 158, "column": 64}}}, "severity": "INFO"}


Example:

```json
{
"ok": true,
"state": "running",
"info": "Initial Sync",

"lagTime": 22,
"eventsProcessed": 5000,
"lastReplicatedOpTime": "1740335200.5",

"initialSync": {
"completed": false,
"lagTime": 5,

"cloneCompleted": false,
"estimatedCloneSize": 5000000000,
"clonedSize": 2500000000
}
"ok": true,
"state": "running",
"info": "Replicating Changes",
"lagTimeSeconds": 1,
"eventsRead": 0,
"eventsApplied": 0,
"lastReplicatedOpTime": {
"ts": "1763649865.1",
"isoDate": "2025-11-20T14:44:25Z"
},
"initialSync": {
"estimatedCloneSizeBytes": 24220000,
"clonedSizeBytes": 24220000,
"completed": true,
"cloneCompleted": true
}
}
```

Expand Down