Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add MongoDB Atlas Alerts List Tool
This PR adds a new tool to list alerts from MongoDB Atlas projects. The tool provides a tabular view of alerts with their status, creation time, and other relevant details.
Changes
ListAlertsTool
class to handle listing alerts from Atlas projectslistAlerts
method to the Atlas API clientTesting
The changes include integration tests that verify:
Example Usage
The tool returns alerts in a table format with the following columns:
API Reference
The tool uses the MongoDB Atlas API endpoint:
https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/alerts
Docs:
https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Access-Tracking/operation/listAccessLogsByHostname
Related Issues
#216
Checklist
Tests
Test Suites: 6 skipped, 26 passed, 26 of 32 total
Tests: 26 skipped, 284 passed, 310 total
Snapshots: 0 total
Time: 12.155 s
Ran all test suites.