Add monitoring endpoint methods for MCP integration#14
Merged
saksham-nexla merged 1 commit intomainfrom Mar 4, 2026
Merged
Conversation
- base_resource.get_audit_log: add filter params (from_date, to_date, event_filter, change_filter, page, per_page) - organizations: explicit audit_log params, aggregate param on get_org_flow_account_metrics, new get_flow_status_metrics - users: explicit audit_log params, aggregate param on get_account_metrics, new get_flow_status_metrics - flows: add get_flow_logs, search_flow_logs, get_active_flows_metrics, get_run_status - metrics: add get_resource_flow_metrics, get_flow_metrics_summary Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
saksham-nexla
approved these changes
Mar 4, 2026
saksham-nexla
added a commit
that referenced
this pull request
Mar 22, 2026
Merges 3 PRs from main: - #13: Make DataMapInfo.description and NotificationSetting.resource_id optional - #14: Add monitoring endpoint methods with explicit params for MCP integration - #15: Add copy_and_replace_credentials convenience method to FlowsResource Resolved conflicts in base_resource.py, metrics.py, organizations.py, and users.py by keeping branch's additional methods while incorporating main's enhanced audit_log params and new monitoring methods.
saksham-nexla
added a commit
that referenced
this pull request
Mar 22, 2026
Add 36 new tests (29 Python, 7 TypeScript) covering methods from merged PRs #13, #14, #15 and their TS SDK mirrors: Python: - base_resource get_audit_log filter/pagination params (6 tests) - metrics publish_raw, resource_flow_metrics, flow_metrics_summary (4) - organizations audit_log explicit params, flow_status_metrics (5) - users audit_log params, account_metrics aggregate, flow_status_metrics (6) - flows get_flow_logs, search_flow_logs, active_flows_metrics, run_status (8) TypeScript: - flows copy_and_replace_credentials edge cases (3) - organizations/users audit_log query params and empty responses (4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
from_date,to_date,event_filter,change_filter,page,per_page) tobase_resource.get_audit_log,organizations.get_audit_log, andusers.get_audit_log— replacing**params/**kwargswhich MCP tool registration cannot introspectaggregateparam toorganizations.get_org_flow_account_metricsandusers.get_account_metricsorganizations.get_flow_status_metrics,users.get_flow_status_metrics,flows.get_flow_logs,flows.search_flow_logs,flows.get_active_flows_metrics,flows.get_run_status,metrics.get_resource_flow_metrics,metrics.get_flow_metrics_summaryTest plan
python -m pytest tests/unit/ -vpassesNexlaClientintrospectionv1.0.3after merge🤖 Generated with Claude Code