Skip to content

Add monitoring endpoint methods for MCP integration#14

Merged
saksham-nexla merged 1 commit intomainfrom
feat/monitoring-sdk-methods
Mar 4, 2026
Merged

Add monitoring endpoint methods for MCP integration#14
saksham-nexla merged 1 commit intomainfrom
feat/monitoring-sdk-methods

Conversation

@avinashpuri
Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit filter params (from_date, to_date, event_filter, change_filter, page, per_page) to base_resource.get_audit_log, organizations.get_audit_log, and users.get_audit_log — replacing **params/**kwargs which MCP tool registration cannot introspect
  • Add aggregate param to organizations.get_org_flow_account_metrics and users.get_account_metrics
  • Add new methods: organizations.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_summary

Test plan

  • python -m pytest tests/unit/ -v passes
  • New methods are discoverable via NexlaClient introspection
  • Tag as v1.0.3 after merge

🤖 Generated with Claude Code

- 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 saksham-nexla merged commit f163178 into main Mar 4, 2026
6 of 7 checks passed
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)
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