Mackerel::Webhook::Receiver::Declare - DSL interface of Mackerel::Webhook::Receiver
use Mackerel::Webhook::Receiver::Declare; my $receiver = receiver { on alert => sub { my ($event, $req) = @_; warn $event->event; my $payload = $event->payload; }; }; $receiver->to_app;
Mackerel::Webhook::Receiver::Declare provides DSL interface of Mackerel::Webhook::Receiver.
Copyright (C) Songmu.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Songmu <y.songmu@gmail.com>
To install Mackerel::Webhook::Receiver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mackerel::Webhook::Receiver
CPAN shell
perl -MCPAN -e shell install Mackerel::Webhook::Receiver
For more information on module installation, please visit the detailed CPAN module installation guide.