Group
Extension

Matches 5

TheEye ( N/NO/NORBU/TheEye-0.5.tar.gz, NORBU, 2014; MetaCPAN )
TheEye/lib/TheEye/Helper/RabbitMQ.pm ( view source; MetaCPAN )
t::More;
use JSON;

# ABSTRACT: Graphite plugin for TheEye
#
our $VERSION = '0.5'; # VERSION

has 'json' => (
    is      => 'rw',
    isa     => 'JSON',
    default => sub {
        JSON->new->utf8->
is_success) {

        my $json;
        my $result;
        eval { $json = $self->json->decode($res->content) };
        unless ($@) {
            foreach my $queue (@{$json}){
                my $na
sages},
                    });
            }
        }
        return {error => 'Could not parse JSON'} unless $result;
        return $result;
    }
    else {
        return { error => $res->status
TheEye ( N/NO/NORBU/TheEye-0.5.tar.gz, NORBU, 2014; MetaCPAN )
TheEye/lib/TheEye/Plugin/Notify/HipChat.pm ( view source; MetaCPAN )
azy     => 1,
    required => 1,
    default  => 'https://api.hipchat.com/v1/rooms/message?format=json&auth_token=',
);

has 'hc_err' => (
    is        => 'rw',
    isa       => 'HashRef',
    requir
TheEye ( N/NO/NORBU/TheEye-0.5.tar.gz, NORBU, 2014; MetaCPAN )
TheEye/lib/TheEye/Plugin/Notify/Prowl.pm ( view source; MetaCPAN )
req = HTTP::Request->new();
    $req->method('GET');
    $req->uri($uri);

    #$req->content( to_json($content) ) if ($content);

    my $ua  = LWP::UserAgent->new();
    my $res = $ua->request($req)
TheEye ( N/NO/NORBU/TheEye-0.5.tar.gz, NORBU, 2014; MetaCPAN )
TheEye/lib/TheEye/Plugin/Notify/Oncall.pm ( view source; MetaCPAN )
package TheEye::Plugin::Notify::Oncall;

use 5.010;
use Mouse::Role;
use JSON;
use LWP::UserAgent;
use HTTP::Request::Common;
use Data::Dumper;

# ABSTRACT: Plugin for TheEye to raise alerts in OnCall
$self->oncall_token,
        Content_Type => 'form-data',
        Content      => { payload => to_json($message) });
    print Dumper($message)
        if $self->debug;
    return $res->is_success;
}
TheEye ( N/NO/NORBU/TheEye-0.5.tar.gz, NORBU, 2014; MetaCPAN )
TheEye/lib/TheEye/Plugin/Notify/PagerDuty.pm ( view source; MetaCPAN )
:Plugin::Notify::PagerDuty;

use 5.010;
use Mouse::Role;
use LWP::UserAgent;
use URI::Escape;
use JSON;
use Data::Dumper;

# ABSTRACT: Plugin for TheEye to raise alerts in Pager Duty
#
our $VERSION = 

    required => 1,
    default  => 'https://events.pagerduty.com/generic/2010-04-15/create_event.json',
);

has 'pd_err' => (
    is        => 'rw',
    isa       => 'HashRef',
    required  => 0,
  
T');
    $req->uri($self->pd_url);
    $req->header('Content-Type' => 'application/json');

    $req->content( to_json($content) ) if ($content);

    my $ua  = LWP::UserAgent->new();
    my $res = $u

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.