-
Notifications
You must be signed in to change notification settings - Fork 2
PCSM-167 Updated the pcsm status output #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the API documentation for the PCSM status output to reflect changes in field names and structure. The changes primarily involve renaming fields for clarity and restructuring the lastReplicatedOpTime field.
Key changes:
- Renamed metrics fields to be more descriptive (e.g.,
lagTime→lagTimeSeconds,eventsProcessed→eventsRead/eventsApplied) - Changed
lastReplicatedOpTimefrom a simple string to an object containing both timestamp and ISO date - Updated example response to reflect the new field structure
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs/api.md
Outdated
| | `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` | string | The last replicated operation time. It includes both the time stamp and its human-readable representation | |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type is documented as 'string' but the example shows it as an object with 'ts' and 'isoDate' fields. Update the type to 'object' to match the actual structure.
| | `lastReplicatedOpTime` | string | The last replicated operation time. It includes both the time stamp and its human-readable representation | | |
| | `lastReplicatedOpTime` | object | The last replicated operation time. Object with `ts` (timestamp) and `isoDate` (human-readable date) fields. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think that we add ts and isoDate fields as separate, like
lastReplicatedOpTime.tslastReplicatedOpTime.isoDate
Just like we have for initialSync object.
| | `eventsApplied` | number | Total number of events applied to the target | | ||
| | `lastReplicatedOpTime` | string | The last replicated operation time. It includes both the time stamp and its human-readable representation | | ||
| | `initialSync.completed` | boolean | Initial sync completion status | | ||
| | `initialSync.lagTime` | number | The lag time in logical seconds until the initial sync completed| |
Copilot
AI
Nov 20, 2025
There was a problem hiding this comment.
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.
No description provided.