The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Giraffi::API - Giraffi API Access Module

VERSION

0.2_04

SYNOPSIS

  use strict;
  use warnings;
  use WWW::Giraffi::API;
  
  my $apikey = "ilovenirvana_ilovekurtcobain";
  my $g = WWW::Giraffi::API->new(apikey => $apikey);
  # get all media data
  my $arrayref = $g->media->find;
  foreach $ref(@{$arrayref}) {
      ## anything to do...
  }

DESCRIPTION

WWW::Giraffi::API is Giraffi API Access Module

ruby giraffi https://github.com/giraffi/giraffi perl binding

GLOBAL VARIABLE

$AGENT

WWW::Giraffi::API/$VERSION

$SSL_VERIFY_HOSTNAME

for LWP::UserAgent ssl_opts(verify_hostname => $this_value). 1

$TIMEOUT

for LWP::UserAgent timeout. 30

$USE_TIME_PIECE

convert unix timestamp fields in json response to Time::Piece Object. default 1

$DEFAULT_ENDPOINT

https://papi.giraffi.jp

$MONITORINGDATA_ENDPOINT

https://okapi.giraffi.jp:3007

$APPLOGS_ENDPOINT

https://lapi.giraffi.jp:3443"

ACCESSOR METHOD

apikey

timeout

default_endpoint

applogs_endpoint

monitoringdata_endpoint

verbose

ssl_verify_hostname

use_time_piece

METHOD

new

Create WWW::Giraffi::API Object

Example:

  my $apikey = "ilovenirvana_ilovekurtcobain";
  my $g = WWW::Giraffi::API->new(apikey => $apikey);

Options

  apikey                    giraffi apikey
  timeout                   connection timeout. default 30sec 
  default_endpoint          default_endpoint. default $DEFAULT_ENDPOINT
  applogs_endpoint          applogs_endpoint. default $APPLOGS_ENDPOINT
  monitoringdata_endpoint   monitoringdata_endpoint. default $MONITORINGDATA_ENDPOINT
  verbose                   verbose output. default 0
  ssl_verify_hostname       ssl_verify_hostname(for LWP::UserAgent). default 1
  use_time_piece            use_time_piece. default $USE_TIME_PIECE

media

Create WWW::Giraffi::API::Media Object

Example:

  my $g = WWW::Giraffi::API->new(apikey => $apikey);
  my $media = $g->media;

axion

Create WWW::Giraffi::API::Axion Object

Example:

  my $axion = $g->axion;

item

Create WWW::Giraffi::API::Item Object

Example:

  my $item = $g->item;

service

Create WWW::Giraffi::API::Service Object

Example:

  my $service = $g->service;

trigger

Create WWW::Giraffi::API::Trigger Object

Example:

  my $trigger = $g->trigger;

log

Create WWW::Giraffi::API::Log Object

Example:

  my $log = $g->log;

applog

Create WWW::Giraffi::API::AppLog Object

Example:

  my $applog = $g->applog;

trend

Create WWW::Giraffi::API::Trend Object

Example:

  my $trend = $g->trend;

region

Create WWW::Giraffi::API::Region Object

Example:

  my $region = $g->region;

monitoringdata

Create WWW::Giraffi::API::MonitoringData Object

Example:

  my $monitoringdata = $g->monitoringdata;

AUTHOR

Akira Horimoto <emperor@gmail.com>

API REFERENCE

https://github.com/giraffi/giraffi/wiki

SEE ALSO

Class::XSAccessor Module::Pluggable Time::Piece

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.