Skip to content

feat(block): Add cloudwatch publish operation#4027

Draft
TheodoreSpeaks wants to merge 1 commit intostagingfrom
feat/cloudwatch-publish-metric
Draft

feat(block): Add cloudwatch publish operation#4027
TheodoreSpeaks wants to merge 1 commit intostagingfrom
feat/cloudwatch-publish-metric

Conversation

@TheodoreSpeaks
Copy link
Copy Markdown
Collaborator

Summary

Brief description of what this PR does and why.

Fixes #(issue)

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

How has this been tested? What should reviewers focus on?

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos

@TheodoreSpeaks
Copy link
Copy Markdown
Collaborator Author

@BugBot review

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Apr 7, 2026 11:50pm

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 7, 2026

PR Summary

Medium Risk
Adds a new authenticated API route that accepts AWS credentials and publishes CloudWatch metrics, increasing the blast radius if validation/auth or logging is misconfigured. Otherwise changes are additive and isolated to the CloudWatch tool/block wiring.

Overview
Adds support for publishing custom CloudWatch metrics via a new cloudwatch_put_metric_data tool and corresponding CloudWatch block operation.

Introduces a new Next.js API route (/api/tools/cloudwatch/put-metric-data) that validates inputs (including allowed units), converts optional dimensions JSON into CloudWatch Dimensions, sends PutMetricDataCommand, and returns the published metric metadata (including timestamp).

Wires the new operation through the block UI (new fields for value/unit/dimensions, updated param mapping/validation) and registers the tool in tools/cloudwatch/index.ts, tools/registry.ts, and tools/cloudwatch/types.ts.

Reviewed by Cursor Bugbot for commit c204d32. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c204d32. Configure here.

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.

1 participant