Skip to content

Add JSON and CSV output to change-stream-monitor snippet#11

Merged
addaleax merged 7 commits intomongodb-labs:mainfrom
edmallia:feature/change-streams-monitor-to-CSV
Jun 2, 2025
Merged

Add JSON and CSV output to change-stream-monitor snippet#11
addaleax merged 7 commits intomongodb-labs:mainfrom
edmallia:feature/change-streams-monitor-to-CSV

Conversation

@edmallia
Copy link
Contributor

@edmallia edmallia commented Apr 9, 2025

Add JSON and CSV output to change-stream-monitor snippet.

  • listChangeStreamsAsTable(extended?: boolean, allUsers?: boolean, nsFilter?: Array) :
    Alias for listChangeStreams(extended?: boolean, allUsers?: boolean, nsFilter?: Array<string>)
  • listChangeStreamsAsJSON(extended?: boolean, allUsers?: boolean, nsFilter?: Array)
  • listChangeStreamsAsCSV(extended?: boolean, delimiter: string, allUsers?: boolean, nsFilter?: Array)

edmallia added 7 commits April 3, 2025 11:44
Adds capability to generate the monitor's output in CSV (with custom delimiter) and in JSON format.

Still pending: update documentation.
Remove unnecessary output
Changes order of arguments in listChangeStreamsAsCSV
@addaleax addaleax merged commit 7ce6689 into mongodb-labs:main Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants