Conversation
|
🔎 A preview has been automatically published! If you created the alias to the preview script, you can run this command to download and install this preview: clever-preview update feat-drain-test-commandYou can also run it from your local repository: ./scripts/preview.js update feat-drain-test-command
This preview will be deleted once this PR is closed. |
b2678a6 to
9cbcf08
Compare
Add `clever drain test-command <drain-id>` which returns a shell command (curl or netcat) to manually test a drain recipient. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9cbcf08 to
9707cea
Compare
Is there a specific reason for this? |
No, it was bad branch management, removing it from overview. |
|
@KannarFr Can you give more context? From what I understood, we output a shell command that users can run to call their own app to mimick what we do when we send logs to drains.
I expected a similar UX as when I setup a hook on GitHub for example.
Naming nitpick: I expected |
|
Yes I agree on your statements, will do. |

Summary
getDrainTestCommandAPI client method for theGET .../drains/{drainId}/test-commandendpointclever drain test-command <drain-id>subcommand that returns a ready-to-execute shell command (curl/netcat) to manually test a drain recipientTest plan
clever drain test-command <drain-id> --app <app>returns a valid shell command for HTTP drains (curl)clever drain test-command <drain-id> --app <app>returns a valid shell command for syslog drains (netcat)clever drain test-command --helpdisplays correct usagecreate,get,disable,enable,remove) still work with--app🤖 Generated with Claude Code